VirtualBox

Changeset 26405 in vbox


Ignore:
Timestamp:
Feb 10, 2010 10:42:41 AM (15 years ago)
Author:
vboxsync
Message:

NAT: applied patch from xtracker 4671 (prevent release assertions when handling ICMP packets under certain circumstances)

File:
1 edited

Legend:

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

    r25822 r26405  
    182182                m0 = icm->im_m;
    183183                ip0 = mtod(m0, struct ip *);
    184                 AssertRelease(ip0->ip_p == IPPROTO_ICMP);
     184                if (ip0->ip_p != IPPROTO_ICMP)
     185                {
     186                    /* try next item */
     187                    continue;
     188                }
    185189                icp0 = (struct icmp *)((char *)ip0 + (ip0->ip_hl << 2));
    186190                if (  (   (icp->icmp_type != ICMP_ECHO && ip->ip_src.s_addr == ip0->ip_dst.s_addr)
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