Date: Thu, 19 Mar 2009 14:13:18 +0000 (UTC) From: Doug Rabson <dfr@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190053 - head/sys/nfsserver Message-ID: <200903191413.n2JEDIFS064388@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dfr Date: Thu Mar 19 14:13:18 2009 New Revision: 190053 URL: http://svn.freebsd.org/changeset/base/190053 Log: Fix an mbuf leak in the error path. Submitted by: Rick Macklem <rick at snowhite dot cis dot uoguelph dot ca> Modified: head/sys/nfsserver/nfs_srvkrpc.c Modified: head/sys/nfsserver/nfs_srvkrpc.c ============================================================================== --- head/sys/nfsserver/nfs_srvkrpc.c Thu Mar 19 14:12:07 2009 (r190052) +++ head/sys/nfsserver/nfs_srvkrpc.c Thu Mar 19 14:13:18 2009 (r190053) @@ -397,6 +397,7 @@ nfssvc_program(struct svc_req *rqst, SVC #endif #endif inet_ntoa(sin->sin_addr), port); + m_freem(mreq); svcerr_weakauth(rqst); svc_freereq(rqst); return; @@ -405,6 +406,7 @@ nfssvc_program(struct svc_req *rqst, SVC if (proc != nfsrv_null) { if (!svc_getcred(rqst, &nd.nd_cr, &nd.nd_credflavor)) { + m_freem(mreq); svcerr_weakauth(rqst); svc_freereq(rqst); return;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903191413.n2JEDIFS064388>