]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/socket: fix coverity issue
authorJens Freimann <jfreimann@redhat.com>
Mon, 6 Nov 2017 14:05:46 +0000 (15:05 +0100)
committerJason Wang <jasowang@redhat.com>
Mon, 13 Nov 2017 10:05:12 +0000 (18:05 +0800)
commitbb160b571fe469b03228d4502c75a18045978a74
treef42459bb94cd7f55a75a7cfce3d2e8ee2393000a
parent5e89dc01133f8f5e621f6b66b356c6f37d31dafb
net/socket: fix coverity issue

This fixes coverity issue CID1005339.

Make sure that saddr is not used uninitialized if the
mcast parameter is NULL.

Cc: qemu-stable@nongnu.org
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jens Freimann <jfreimann@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/socket.c