git: DragonFly_RELEASE_5_2 kernel - Fix getsockname() on unnamed AF_LOCAL sockets

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 31 16:08:49 PDT 2018


commit f76d9044e82c7f901f873c2f3fb154d49e4504b5
Author: Matthew Dillon <dillon at apollo.backplane.com>
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


More information about the Commits mailing list