diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-01-22 13:13:13 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-01-22 13:13:13 +0000 |
| commit | 56b3905f15ae0ef22a50070c5fbc26d8abb0599a (patch) | |
| tree | 421b481dd91bf60b8165f5cfe634e3e456172088 | |
| parent | 5da7cece45f11f0ffc3957e4770b2d55f869ad4d (diff) | |
Notes
| -rw-r--r-- | sys/kern/uipc_usrreq.c | 2 |
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; } |
