mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
udp_input: fixed unreachable code warning for CHECKSUM_CHECK_UDP==0
This commit is contained in:
parent
dd245c63d7
commit
7043983acc
@ -472,6 +472,7 @@ udp_input(struct pbuf *p, struct netif *inp)
|
||||
end:
|
||||
PERF_STOP("udp_input");
|
||||
return;
|
||||
#if CHECKSUM_CHECK_UDP
|
||||
chkerr:
|
||||
LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
|
||||
("udp_input: UDP (or UDP Lite) datagram discarded due to failing checksum\n"));
|
||||
@ -480,6 +481,7 @@ chkerr:
|
||||
snmp_inc_udpinerrors();
|
||||
pbuf_free(p);
|
||||
PERF_STOP("udp_input");
|
||||
#endif /* CHECKSUM_CHECK_UDP */
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user