diff options
author | peter <peter@FreeBSD.org> | 1998-05-31 18:19:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-31 18:19:43 +0000 |
commit | c50a18d36198ccf7c910eaa7d796f37ec0b7301d (patch) | |
tree | 86ac96e9c4cdc35928f1af90147fd91168c1d9b7 /sys/nfs/nfs_common.h | |
parent | 66a3e6b96c8976dd313815b455b57ab36f640b0c (diff) | |
download | FreeBSD-src-c50a18d36198ccf7c910eaa7d796f37ec0b7301d.zip FreeBSD-src-c50a18d36198ccf7c910eaa7d796f37ec0b7301d.tar.gz |
Don't try and free mrep twice on some error conditions.
Obtained from: NetBSD
Diffstat (limited to 'sys/nfs/nfs_common.h')
-rw-r--r-- | sys/nfs/nfs_common.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/nfs/nfs_common.h b/sys/nfs/nfs_common.h index d6bdc63..efba82b 100644 --- a/sys/nfs/nfs_common.h +++ b/sys/nfs/nfs_common.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95 - * $Id: nfsm_subs.h,v 1.17 1998/05/31 17:27:57 peter Exp $ + * $Id: nfsm_subs.h,v 1.18 1998/05/31 17:48:07 peter Exp $ */ @@ -337,7 +337,10 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid, else \ (void) nfs_rephead((s), nfsd, slp, error, cache, &frev, \ mrq, &mb, &bpos); \ - m_freem(mrep); \ + if (mrep != NULL) { \ + m_freem(mrep); \ + mrep = NULL; \ + } \ mreq = *mrq; \ if (error && (!(nfsd->nd_flag & ND_NFSV3) || \ error == EBADRPC)) \ |