Date: Tue, 21 May 2019 18:05:57 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348057 - head/sys/compat/linux Message-ID: <201905211805.x4LI5vJO037584@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Tue May 21 18:05:57 2019 New Revision: 348057 URL: https://svnweb.freebsd.org/changeset/base/348057 Log: Do not use uninitialised sa. Reported by: tijl@ MFC after: 1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c ============================================================================== --- head/sys/compat/linux/linux_socket.c Tue May 21 18:03:58 2019 (r348056) +++ head/sys/compat/linux/linux_socket.c Tue May 21 18:05:57 2019 (r348057) @@ -1165,7 +1165,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?201905211805.x4LI5vJO037584>