mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-11 08:54:38 +08:00
tcp_set_state: fail on unimplemented state
This commit is contained in:
parent
2e4bb8b3b7
commit
fbef894674
@ -121,6 +121,8 @@ tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, struct ip_addr* local_i
|
|||||||
pcb->local_port = local_port;
|
pcb->local_port = local_port;
|
||||||
pcb->remote_ip.addr = remote_ip->addr;
|
pcb->remote_ip.addr = remote_ip->addr;
|
||||||
pcb->remote_port = remote_port;
|
pcb->remote_port = remote_port;
|
||||||
|
} else {
|
||||||
|
fail();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user