VirtualBox

Changeset 106612 in vbox


Ignore:
Timestamp:
Oct 23, 2024 9:24:04 AM (5 weeks ago)
Author:
vboxsync
Message:

libs/libslirp: Just to play safe, tell the compiler to zero the whole sockaddr_in6 structure, both in icmp6_send and udp6_input. bugref:10268

Location:
trunk/src/libs/libslirp-4.8.0/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libslirp-4.8.0/src/ip6_icmp.c

    r106586 r106612  
    4545    Slirp *slirp = m->slirp;
    4646
     47#ifdef VBOX
     48    struct sockaddr_in6 addr = { 0 }; /* Must zero all fields not explictly initialized below or sendto fails on windows. */
     49#else
    4750    struct sockaddr_in6 addr;
     51#endif
    4852
    4953    /*
     
    9599    addr.sin6_family = AF_INET6;
    96100    addr.sin6_addr = so->so_faddr6;
    97 #ifdef VBOX
    98     addr.sin6_port = 0;
    99     addr.sin6_flowinfo = 0;
    100     addr.sin6_scope_id = 0;
    101 #endif
    102101
    103102    slirp_insque(so, &so->slirp->icmp);
  • trunk/src/libs/libslirp-4.8.0/src/udp6.c

    r105533 r106612  
    1919    int len;
    2020    struct socket *so;
     21#ifdef VBOX
     22    struct sockaddr_in6 lhost = { 0 }; /* Initialize everything to zero, just to be on the safe side. */
     23#else
    2124    struct sockaddr_in6 lhost;
     25#endif
    2226    int hop_limit;
    2327
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