cvs commit: src/sys/kern uipc_syscalls.c
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Wed Nov 26 05:12:13 PST 2008
sephe 2008/11/26 05:10:56 PST
DragonFly src repository
Modified files:
sys/kern uipc_syscalls.c
Log:
- In sys_setsockopt():
o Don't test sopt.sopt_val against NULL; this is not setup yet. This fixes
random setsockopt(2) failure with EINVAL.
o Clear sopt.sopt_val earlier
o Don't do copyout in setsockopt; the user arg is const
- In sys_getsockopt():
o Clear sopt.sopt_val earlier
o Centralize sopt.sopt_valsize check
Reviewed-by: aggelos@
Revision Changes Path
1.92 +5 -15 src/sys/kern/uipc_syscalls.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_syscalls.c.diff?r1=1.91&r2=1.92&f=u
More information about the Commits
mailing list