git: kernel - Fix getsockname() on unnamed AF_LOCAL sockets
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Oct 30 18:49:53 PDT 2018
commit ddec9e61ea71e07fc90922027c433c850db5a3ad
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/ddec9e61ea71e07fc90922027c433c850db5a3ad
--
DragonFly BSD source repository
More information about the Commits
mailing list