mirror of
https://github.com/mii443/qemu.git
synced 2025-08-29 10:29:27 +00:00
Since commit0f8c289ad
"net: fix -netdev socket,fd= for UDP sockets" we allow more than one parameter for -netdev socket. But now we run into an assert when no parameter at all is specified > qemu-system-x86_64 -netdev socket socket.c:729: net_init_socket: Assertion `sock->has_udp' failed. Fix this by reverting the change of the if condition done in0f8c289ad
. Cc: Jason Wang <jasowang@redhat.com> Cc: qemu-stable@nongnu.org Fixes:0f8c289ad5
Reported-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com> Signed-off-by: Jens Freimann <jfreimann@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> (cherry picked from commitff86d57625
) Conflicts: net/socket.c * drop context dep on0522a959
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>