commit f76d9044e82c7f901f873c2f3fb154d49e4504b5
Author: Matthew Dillon <[email protected]>
Date:   Tue Oct 30 18:48:35 2018 -0700

    kernel - Fix getsockname() on unnamed AF_LOCAL sockets
    
    * Fix getsockname() on unnamed AF_LOCAL sockets.  The socket structure
      does not actually bother storing a sockaddr, so sa is returned NULL.
      In this situation, just dummy-up an AF_LOCAL sockaddr.
    
    * Don't bother copyout()ing sa_len unless it has changed.
    
    Reported-by: tuxillo

Summary of changes:
 sys/kern/uipc_syscalls.c | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

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


-- 
DragonFly BSD source repository

Reply via email to