mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
tcp_out: Fix trivial build error
Fixes: 6ac21515ca
("Add missing null checks")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
6ac21515ca
commit
a51c92b617
@ -1822,8 +1822,6 @@ tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen,
|
||||
struct tcp_hdr *tcphdr;
|
||||
struct pbuf *p;
|
||||
|
||||
LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL);
|
||||
|
||||
p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
|
||||
if (p != NULL) {
|
||||
LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",
|
||||
|
Loading…
Reference in New Issue
Block a user