kern_{get,set}sockopt - invalid value check
authorAlex Hornung <ahornung@gmail.com>
Wed, 17 Mar 2010 14:20:15 +0000 (14:20 +0000)
committerAlex Hornung <ahornung@gmail.com>
Wed, 17 Mar 2010 14:20:15 +0000 (14:20 +0000)
commitb8237e23e62603fbf8951cfb7763999e1404afc2
tree338e460ba02dcac8af3a5fcc2556dc51fa56535b
parent2dd2e007299477bd1ae3523bf9930dc07de0664f
kern_{get,set}sockopt - invalid value check

* Check for sopt_val != NULL && sopt_valsize == 0 and return EINVAL in
  this case, or else an assert will be triggered and the kernel will
  panic.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue1696
sys/kern/uipc_syscalls.c