Changeset 85082 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 7, 2020 2:04:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r82968 r85082 487 487 ip->ip_src.s_addr = dst; 488 488 icmp_reflect(pData, m); 489 m = NULL; /* m was consumed and freed */ 489 490 goto done; 490 491 } … … 550 551 { 551 552 icmp_attach(pData, m); 552 /* don't let m_freem at the end free atached buffer*/553 m = NULL; /* m was stashed away for safekeeping */ 553 554 goto done; 554 555 } … … 562 563 } 563 564 icmp_error(pData, m, ICMP_UNREACH, ICMP_UNREACH_NET, 0, strerror(errno)); 565 m = NULL; /* m was consumed and freed */ 566 goto done; 564 567 } 565 568 } … … 585 588 586 589 end_error_free_m: 587 m_freem(pData, m); 590 if (m != NULL) 591 m_freem(pData, m); 588 592 589 593 done:
Note:
See TracChangeset
for help on using the changeset viewer.