diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-01-24 11:33:35 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-01-24 11:33:35 +0000 |
commit | 4166cf6f97280267ff3544662208a777359bfd3c (patch) | |
tree | 426c2d53c60dcca441f87e7125492254f9c86a66 /sys/nfs/krpc_subr.c | |
parent | 9788989aadd55035b6323481429d0dada759c743 (diff) |
make sure the from mbuf gets freed on error to.
from David <dunnoseriously _att_ gmail.com>
ok blambert@
Diffstat (limited to 'sys/nfs/krpc_subr.c')
-rw-r--r-- | sys/nfs/krpc_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |