VirtualBox

Changeset 35925 in vbox


Ignore:
Timestamp:
Feb 10, 2011 11:12:40 AM (14 years ago)
Author:
vboxsync
Message:

NAT: icmp_error frees mbuf at the end of processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r35923 r35925  
    635635
    636636    memcpy(&icp->icmp_ip, msrc->m_data, s_ip_len);   /* report the ip packet */
    637     m_freem(pData, msrc);
    638637
    639638    HTONS(icp->icmp_ip.ip_len);
     
    673672    icmpstat.icps_reflect++;
    674673
     674    /* clear source datagramm in positive branch */
     675    m_freem(pData, msrc);
    675676    return;
    676677
     
    679680
    680681end_error:
     682
     683    /*
     684     * clear source datagramm in case if some of requirement haven't been met.
     685     */
     686    if (!msrc)
     687        m_freem(pData, msrc);
     688
    681689    {
    682690        static bool fIcmpErrorReported;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette