FreeBSD Bugzilla – Attachment 13554 Details for
Bug 25732
Patch against crash caused by operations with half-binded sockets.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.07 KB, created by
Unicorn
on 2001-03-12 11:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Unicorn
Created:
2001-03-12 11:30:01 UTC
Size:
1.07 KB
patch
obsolete
>Index: in_pcb.c >=================================================================== >RCS file: /home/ncvs/src/sys/netinet/in_pcb.c,v >retrieving revision 1.81 >diff -r1.81 in_pcb.c >275c275,281 >< if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr )) >--- >> if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr )) { >> /* >> * Undo any address bind that may have >> * occurred above. >> */ >> inp->inp_laddr.s_addr = INADDR_ANY; >> >276a283 >> } >284c291,296 >< if (p && (error = suser_xxx(0, p, PRISON_ROOT))) >--- >> if (p && (error = suser_xxx(0, p, PRISON_ROOT))) { >> /* >> * Undo any address bind that may have >> * occurred above. >> */ >> inp->inp_laddr.s_addr = INADDR_ANY; >285a298 >> } >309,312d321 >< /* >< * Undo any address bind that may have >< * occurred above. >< */ >346,347c355,361 >< if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr)) >< return(EINVAL); >--- >> >> if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr)) { >> inp->inp_laddr.s_addr = INADDR_ANY; >> inp->inp_lport = 0; >> return (EINVAL); >> } >>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25732
: 13554