Skip to content

Commit

Permalink
Partial revert of r262867.
Browse files Browse the repository at this point in the history
r262867 was described as fixing socket buffer checks for SOCK_SEQPACKET,
but also changed one of the SOCK_DGRAM code paths to use the new
sbappendaddr_nospacecheck_locked() function.  This lead to SOCK_DGRAM
bypassing socket buffer limits.
  • Loading branch information
DarkHelmet433 committed Aug 3, 2014
1 parent 1d42350 commit f53e346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/kern/uipc_usrreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
from = &sun_noname;
so2 = unp2->unp_socket;
SOCKBUF_LOCK(&so2->so_rcv);
if (sbappendaddr_nospacecheck_locked(&so2->so_rcv, from, m,
if (sbappendaddr_locked(&so2->so_rcv, from, m,
control)) {
sorwakeup_locked(so2);
m = NULL;
Expand Down

0 comments on commit f53e346

Please sign in to comment.