DragonFly commits List (threaded) for 2008-11
DragonFly BSD
DragonFly commits List (threaded) for 2008-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern uipc_syscalls.c


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Nov 2008 05:10:56 -0800 (PST)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]