git: kern_{get,set}sockopt - invalid value check

Alex Hornung alexh at crater.dragonflybsd.org
Wed Mar 17 07:25:25 PDT 2010


commit b8237e23e62603fbf8951cfb7763999e1404afc2
Author: Alex Hornung <ahornung at gmail.com>
Date:   Wed Mar 17 14:20:15 2010 +0000

    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

Summary of changes:
 sys/kern/uipc_syscalls.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b8237e23e62603fbf8951cfb7763999e1404afc2


-- 
DragonFly BSD source repository





More information about the Commits mailing list