qemu/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 slirp/arp: do not special-case bogus IP addresses 2014-06-09 01:49:28 +02:00
bootp.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
bootp.h janitor: add guards to headers 2012-12-19 08:31:31 +01:00
cksum.c slirp: Fix compiler warning for w64 2012-03-13 16:15:19 +01:00
COPYRIGHT Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
debug.h slirp: Cleanup and basic reanimation of debug code 2009-06-29 08:52:46 -05:00
dnssearch.c slirp: Add domain-search option to slirp's DHCP server 2012-11-15 10:27:14 +01:00
if.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
if.h slirp: Clean up ifs_init 2012-02-27 14:54:49 +01:00
ip_icmp.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
ip_icmp.h slirp: Fix spelling in comment (enought -> enough, insure -> ensure) 2012-10-05 14:24:37 +02:00
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 slirp: Avoid statements without effect on Big Endian host 2012-05-28 22:31:07 +02:00
libslirp.h slirp: set mainloop timeout with more precise value 2013-09-17 12:26:05 +02:00
main.h slirp: switch to GPollFD 2013-02-21 16:17:31 -06:00
Makefile.objs slirp: Add domain-search option to slirp's DHCP server 2012-11-15 10:27:14 +01:00
mbuf.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
mbuf.h slirp: remove mbuf(m_hdr,m_dat) indirection 2013-07-19 12:52:03 +04:00
misc.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
misc.h slirp/misc: Use the GLib memory allocation APIs 2014-08-24 13:16:32 +04:00
sbuf.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
sbuf.h Fix breakage by obsolete _P() for good 2009-07-01 19:11:17 +00:00
slirp_config.h slirp/misc: Use the GLib memory allocation APIs 2014-08-24 13:16:32 +04:00
slirp.c slirp: Remove unused zero_ethaddr[] variable 2014-06-10 19:39:34 +04:00
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 slirp: switch to GPollFD 2013-02-21 16:17:31 -06:00
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 More NULL pointer fixes 2009-08-01 10:13:20 +00:00
tcp_timer.h Fix breakage by obsolete _P() for good 2009-07-01 19:11:17 +00:00
tcp_var.h slirp: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types 2010-07-25 16:59:41 +02:00
tcp.h slirp: Untangle TCPOLEN_* from TCPOPT_* 2012-05-28 13:45:33 +02:00
tcpip.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tftp.c Fixed various typos 2014-03-25 14:09:50 +01:00
tftp.h Increase maximum number of session of the internal TFTP server. 2014-06-24 20:01:24 +04:00
udp.c slirp: goto bad in udp_input if sosendto fails 2016-02-04 13:22:06 +08:00
udp.h slirp: Cleanup resources on instance removal 2012-03-13 14:05:49 +01:00