Changeset 58542 in vbox
- Timestamp:
- Nov 2, 2015 2:56:15 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/NetworkServices/NAT/pxtcp.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/pxtcp.c
r58541 r58542 1043 1043 1044 1044 /* save initial datagram in case we need to reply with ICMP */ 1045 pbuf_ref(p); 1046 pxtcp->unsent = p; 1047 pxtcp->netif = ip_current_netif(); 1045 if (p != NULL) { 1046 pbuf_ref(p); 1047 pxtcp->unsent = p; 1048 pxtcp->netif = ip_current_netif(); 1049 } 1048 1050 1049 1051 pxtcp_pcb_associate(pxtcp, newpcb); … … 1213 1215 1214 1216 /* we are not going to reply with ICMP, so we can drop initial pbuf */ 1215 LWIP_ASSERT1(pxtcp->unsent != NULL); 1216 pbuf_free(pxtcp->unsent); 1217 pxtcp->unsent = NULL; 1217 if (pxtcp->unsent != NULL) { 1218 pbuf_free(pxtcp->unsent); 1219 pxtcp->unsent = NULL; 1220 } 1218 1221 1219 1222 error = tcp_proxy_accept_confirm(pxtcp->pcb);
Note:
See TracChangeset
for help on using the changeset viewer.

