VirtualBox

Ignore:
Timestamp:
Feb 14, 2012 3:08:11 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76257
Message:

NAT/libalias: backed out r76255, the code actually right (no way to return uinitialized value here), I've been confused by code style a bit.

File:
1 edited

Legend:

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

    r40114 r40116  
    12471247    struct in_addr alias_addr;
    12481248    struct ip *pip;
    1249 #ifndef VBOX
    12501249    int iresult;
    1251 #else
    1252     /* vbox: we need initialize iresult from the very beginning to avoid
    1253      * returning of uninitiolized value on first getout. */
    1254     int iresult = PKT_ALIAS_IGNORED;
    1255 #endif
    12561250
    12571251    if (la->packetAliasMode & PKT_ALIAS_REVERSE) {
     
    12731267    }
    12741268
    1275 #ifndef VBOX
    12761269    iresult = PKT_ALIAS_IGNORED;
    1277 #endif
    12781270    if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) {
    12791271        switch (pip->ip_p) {
Note: See TracChangeset for help on using the changeset viewer.

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