From c0d2b279c664d402fb85679ae48dca41ac1837b2 Mon Sep 17 00:00:00 2001 From: fvdl Date: Wed, 20 Mar 1996 21:59:56 +0000 Subject: [PATCH] Make sure not to free the reply mbuf twice. Should fix PR #2240 --- sys/nfs/nfsm_subs.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/nfs/nfsm_subs.h b/sys/nfs/nfsm_subs.h index 0c47f35b69f8..6e4d2a77b1a5 100644 --- a/sys/nfs/nfsm_subs.h +++ b/sys/nfs/nfsm_subs.h @@ -1,4 +1,4 @@ -/* $NetBSD: nfsm_subs.h,v 1.9 1996/02/18 11:54:01 fvdl Exp $ */ +/* $NetBSD: nfsm_subs.h,v 1.10 1996/03/20 21:59:56 fvdl Exp $ */ /* * Copyright (c) 1989, 1993 @@ -327,7 +327,10 @@ 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)) \