]> xenbits.xensource.com Git - qemu-xen.git/commit
net/socket: fix coverity issue
authorJens Freimann <jfreimann@redhat.com>
Mon, 6 Nov 2017 14:05:46 +0000 (15:05 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 6 Dec 2017 15:43:29 +0000 (09:43 -0600)
commit957bd48acfc350fd9b05669fb55cb61b004dd7bb
tree4e90bcfbdfff22cc1b9cdb2139c0c755cb54c470
parent3a82a03a2e671ad23865fed273d5baf19790e037
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>
(cherry picked from commit bb160b571fe469b03228d4502c75a18045978a74)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/socket.c