Page MenuHomeFreeBSD

D7413.diff
No OneTemporary

D7413.diff

Index: sys/nfs/krpc_subr.c
===================================================================
--- sys/nfs/krpc_subr.c
+++ sys/nfs/krpc_subr.c
@@ -209,8 +209,10 @@
* Validate address family.
* Sorry, this is INET specific...
*/
- if (sa->sin_family != AF_INET)
+ if (sa->sin_family != AF_INET) {
+ m_freem(mhead);
return (EAFNOSUPPORT);
+ }
/* Free at end if not null. */
nam = mhead = NULL;
@@ -219,8 +221,10 @@
/*
* Create socket and set its receive timeout.
*/
- if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td)))
+ if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td))) {
+ m_freem(mhead);
return error;
+ }
tv.tv_sec = 1;
tv.tv_usec = 0;

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 15, 12:33 AM (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091035
Default Alt Text
D7413.diff (862 B)

Event Timeline