Don't allow multiple binds to the same UDP port/address pair.Closes bug #1896

This commit is contained in:
jani
2003-01-21 14:09:31 +00:00
parent 39edc69514
commit 16434f0d01
2 changed files with 14 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ do_bind(struct api_msg_msg *msg)
case NETCONN_UDPNOCHKSUM:
/* FALLTHROUGH */
case NETCONN_UDP:
udp_bind(msg->conn->pcb.udp, msg->msg.bc.ipaddr, msg->msg.bc.port);
msg->conn->err = udp_bind(msg->conn->pcb.udp, msg->msg.bc.ipaddr, msg->msg.bc.port);
break;
#endif /* LWIP_UDP */
case NETCONN_TCP: