svn commit: r364697 - stable/12/sys/compat/linux
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Aug 24 15:53:53 UTC 2020
Author: trasz
Date: Mon Aug 24 15:53:52 2020
New Revision: 364697
URL: https://svnweb.freebsd.org/changeset/base/364697
Log:
MFC r348057 by dchagin:
Do not use uninitialised sa.
Modified:
stable/12/sys/compat/linux/linux_socket.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linux/linux_socket.c
==============================================================================
--- stable/12/sys/compat/linux/linux_socket.c Mon Aug 24 15:52:45 2020 (r364696)
+++ stable/12/sys/compat/linux/linux_socket.c Mon Aug 24 15:53:52 2020 (r364697)
@@ -1172,7 +1172,7 @@ linux_recvmsg_common(struct thread *td, l_int s, struc
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)
More information about the svn-src-stable-12
mailing list