Fix an mbuf leak in the error path.
Submitted by: Rick Macklem <rick at snowhite dot cis dot uoguelph dot ca>
This commit is contained in:
parent
abadd1494d
commit
ffc39002ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190053
@ -397,6 +397,7 @@ nfssvc_program(struct svc_req *rqst, SVCXPRT *xprt)
|
||||
#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, SVCXPRT *xprt)
|
||||
|
||||
if (proc != nfsrv_null) {
|
||||
if (!svc_getcred(rqst, &nd.nd_cr, &nd.nd_credflavor)) {
|
||||
m_freem(mreq);
|
||||
svcerr_weakauth(rqst);
|
||||
svc_freereq(rqst);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user