VirtualBox

Changeset 49413 in vbox


Ignore:
Timestamp:
Nov 8, 2013 4:23:28 AM (11 years ago)
Author:
vboxsync
Message:

Handle VBoxNetLwipNAT::init() failure too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp

    r49412 r49413  
    12301230    Log2(("NAT: initialization\n"));
    12311231    int rc = g_pLwipNat->parseArgs(argc - 1, argv + 1);
    1232     AssertRC(rc);
    1233 
    1234 
    1235     if (!rc)
    1236     {
    1237 
    1238         g_pLwipNat->init();
     1232    rc = (rc == 0) ? VINF_SUCCESS : VERR_GENERAL_FAILURE; /* XXX: FIXME */
     1233
     1234    if (RT_SUCCESS(rc))
     1235    {
     1236        rc = g_pLwipNat->init();
     1237    }
     1238
     1239    if (RT_SUCCESS(rc))
     1240    {
    12391241        g_pLwipNat->run();
    1240 
    1241     }
     1242    }
     1243
    12421244    delete g_pLwipNat;
    12431245    return 0;
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