summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-01-22 13:13:13 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-01-22 13:13:13 +0000
commit56b3905f15ae0ef22a50070c5fbc26d8abb0599a (patch)
tree421b481dd91bf60b8165f5cfe634e3e456172088
parent5da7cece45f11f0ffc3957e4770b2d55f869ad4d (diff)
Notes
-rw-r--r--sys/kern/uipc_usrreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 2907cf2d046a..869bc114ebe7 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -220,6 +220,8 @@ uipc_peeraddr(struct socket *so, struct sockaddr **nam)
if (unp->unp_conn && unp->unp_conn->unp_addr)
*nam = dup_sockaddr((struct sockaddr *)unp->unp_conn->unp_addr,
1);
+ else
+ *nam = dup_sockaddr((struct sockaddr *)&sun_noname, 1);
return 0;
}