qemu-e2k/slirp
Guillaume Subiron 86c9e1e9d7 slirp: goto bad in udp_input if sosendto fails
Before this patch, if sosendto fails, udp_input is executed as if the
packet was sent, recording the packet for icmp errors, which does not
makes sense since the packet was not actually sent, errors would be
related to a previous packet.

This patch adds a goto bad to cut the execution of this function.

Signed-off-by: Guillaume Subiron <maethor@subiron.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-02-04 13:22:06 +08:00
..
arp_table.c
bootp.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
bootp.h
cksum.c
COPYRIGHT
debug.h
dnssearch.c
if.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
if.h
ip_icmp.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
ip_icmp.h
ip_input.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
ip_output.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
ip.h
libslirp.h
main.h
Makefile.objs
mbuf.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
mbuf.h
misc.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
misc.h
sbuf.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
sbuf.h
slirp_config.h
slirp.c
slirp.h ether/slirp: Avoid redefinition of the same constants 2016-01-11 11:01:35 +08:00
socket.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
socket.h
tcp_input.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
tcp_output.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
tcp_subr.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
tcp_timer.c
tcp_timer.h
tcp_var.h
tcp.h
tcpip.h
tftp.c
tftp.h
udp.c slirp: goto bad in udp_input if sosendto fails 2016-02-04 13:22:06 +08:00
udp.h