From 4166cf6f97280267ff3544662208a777359bfd3c Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Sat, 24 Jan 2009 11:33:35 +0000 Subject: make sure the from mbuf gets freed on error to. from David ok blambert@ --- sys/nfs/krpc_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/nfs/krpc_subr.c') diff --git a/sys/nfs/krpc_subr.c b/sys/nfs/krpc_subr.c index 38d7f28bb8d..0a0e47f3dc3 100644 --- a/sys/nfs/krpc_subr.c +++ b/sys/nfs/krpc_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: krpc_subr.c,v 1.17 2008/06/10 23:15:32 blambert Exp $ */ +/* $OpenBSD: krpc_subr.c,v 1.18 2009/01/24 11:33:34 thib Exp $ */ /* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */ /* @@ -449,7 +449,7 @@ krpc_call(sa, prog, vers, func, data, from_p, retries) /* result */ *data = m; - if (from_p) { + if (from_p && error == 0) { *from_p = from; from = NULL; } -- cgit v1.2.3