mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +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:
|
end:
|
||||||
PERF_STOP("udp_input");
|
PERF_STOP("udp_input");
|
||||||
return;
|
return;
|
||||||
|
#if CHECKSUM_CHECK_UDP
|
||||||
chkerr:
|
chkerr:
|
||||||
LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
|
LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
|
||||||
("udp_input: UDP (or UDP Lite) datagram discarded due to failing checksum\n"));
|
("udp_input: UDP (or UDP Lite) datagram discarded due to failing checksum\n"));
|
||||||
@ -480,6 +481,7 @@ chkerr:
|
|||||||
snmp_inc_udpinerrors();
|
snmp_inc_udpinerrors();
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
PERF_STOP("udp_input");
|
PERF_STOP("udp_input");
|
||||||
|
#endif /* CHECKSUM_CHECK_UDP */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user