tcp_set_state: fail on unimplemented state

This commit is contained in:
goldsimon 2009-12-11 13:07:06 +00:00
parent 2e4bb8b3b7
commit fbef894674

View File

@ -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->remote_ip.addr = remote_ip->addr;
pcb->remote_port = remote_port;
} else {
fail();
}
}