Date: Mon, 24 Aug 2020 15:53:53 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r364697 - stable/12/sys/compat/linux Message-ID: <202008241553.07OFrrN8055045@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008241553.07OFrrN8055045>