VirtualBox

Changeset 50028 in vbox


Ignore:
Timestamp:
Jan 7, 2014 2:37:20 AM (11 years ago)
Author:
vboxsync
Message:

pxping_recv6: check if pbuf_header() succeeded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxping.c

    r50024 r50028  
    691691    if (!pcb->is_mapped) {
    692692        if (hopl == 1) {
    693             pbuf_header(p, iphlen); /* back to IP header */
    694             icmp6_time_exceeded(p, ICMP6_TE_HL);
     693            status = pbuf_header(p, iphlen); /* back to IP header */
     694            if (RT_LIKELY(status == 0)) {
     695                icmp6_time_exceeded(p, ICMP6_TE_HL);
     696            }
    695697            pbuf_free(p);
    696698            return;
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