Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112584840
D49348.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49348.diff
View Options
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -361,8 +361,9 @@
/* FIX, for non-bsd is this right? */
vrf_id = SCTP_DEFAULT_VRFID;
+ if (req->newptr == NULL)
+ return (EINVAL);
error = priv_check(req->td, PRIV_NETINET_GETCRED);
-
if (error)
return (error);
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -2698,6 +2698,8 @@
struct inpcb *inp;
int error;
+ if (req->newptr == NULL)
+ return (EINVAL);
error = priv_check(req->td, PRIV_NETINET_GETCRED);
if (error)
return (error);
@@ -2740,6 +2742,8 @@
int mapped = 0;
#endif
+ if (req->newptr == NULL)
+ return (EINVAL);
error = priv_check(req->td, PRIV_NETINET_GETCRED);
if (error)
return (error);
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -844,6 +844,8 @@
struct inpcb *inp;
int error;
+ if (req->newptr == NULL)
+ return (EINVAL);
error = priv_check(req->td, PRIV_NETINET_GETCRED);
if (error)
return (error);
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c
--- a/sys/netinet6/sctp6_usrreq.c
+++ b/sys/netinet6/sctp6_usrreq.c
@@ -375,6 +375,8 @@
vrf_id = SCTP_DEFAULT_VRFID;
+ if (req->newptr == NULL)
+ return (EINVAL);
error = priv_check(req->td, PRIV_NETINET_GETCRED);
if (error)
return (error);
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -617,6 +617,8 @@
struct inpcb *inp;
int error;
+ if (req->newptr == NULL)
+ return (EINVAL);
error = priv_check(req->td, PRIV_NETINET_GETCRED);
if (error)
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 4:04 AM (13 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17237636
Default Alt Text
D49348.diff (1 KB)
Attached To
Mode
D49348: netinet: Fix getcred sysctl handlers to do nothing if no input is given
Attached
Detach File
Event Timeline
Log In to Comment