|
|
| version 1.16, 2004/04/20 01:52:28 | version 1.17, 2004/04/21 18:13:56 |
|---|---|
| Line 833 tcp_connect(struct tcpcb *tp, struct soc | Line 833 tcp_connect(struct tcpcb *tp, struct soc |
| struct netmsg_tcp_connect *msg; | struct netmsg_tcp_connect *msg; |
| msg = malloc(sizeof(struct netmsg_tcp_connect), M_LWKTMSG, | msg = malloc(sizeof(struct netmsg_tcp_connect), M_LWKTMSG, |
| M_NOWAIT); | M_NOWAIT); |
| if (msg == NULL) { | if (msg == NULL) { |
| if (didbind) { /* need to unwind bind */ | if (didbind) { /* need to unwind bind */ |
| inp->inp_lport = 0; | inp->inp_lport = 0; |
| Line 849 tcp_connect(struct tcpcb *tp, struct soc | Line 849 tcp_connect(struct tcpcb *tp, struct soc |
| msg->nm_sin = sin; | msg->nm_sin = sin; |
| msg->nm_ifsin = if_sin; | msg->nm_ifsin = if_sin; |
| error = lwkt_domsg(port, &msg->nm_lmsg); | error = lwkt_domsg(port, &msg->nm_lmsg); |
| free(msg, M_LWKTMSG); | |
| } else | } else |
| #endif | #endif |
| error = tcp_connect_oncpu(tp, sin, if_sin); | error = tcp_connect_oncpu(tp, sin, if_sin); |