diff options
| author | Dmitry Chagin <dchagin@FreeBSD.org> | 2019-05-21 18:05:57 +0000 |
|---|---|---|
| committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2019-05-21 18:05:57 +0000 |
| commit | 57cb29a73eb05208c26f8a7307550297f741c8d8 (patch) | |
| tree | ea3402fcca9e42518ca90fb304f2c5c9bd0c4c6d /sys/compat/linux | |
| parent | dcd6241868133e0c68a3e72b30184454005c1a71 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 4182d1c5c10f..12db1a0dd5ab 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1165,7 +1165,7 @@ linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr, if (error != 0) goto bad; - if (sa) { + if (msg->msg_name) { msg->msg_name = PTRIN(linux_msg.msg_name); error = bsd_to_linux_sockaddr(sa, &lsa, msg->msg_namelen); if (error == 0) |
