summaryrefslogtreecommitdiff
path: root/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
diff options
context:
space:
mode:
authorFelix Geyer <fgeyer@debian.org>2014-04-05 22:17:15 +0200
committerFelix Geyer <fgeyer@debian.org>2014-04-05 22:17:15 +0200
commit1700c7d32f7d9d101cbba9f1fcb8bb57ed16a727 (patch)
tree727251ad65172262944f82bb0f28601c3fb6f6b3 /src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
parent1e85aed889b772c2f2daa7a6d9e8bd967aa213d8 (diff)
downloadvirtualbox-upstream.tar.gz
Imported Upstream version 4.3.10-dfsgupstream/4.3.10-dfsgupstream
Diffstat (limited to 'src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp')
-rw-r--r--src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp b/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
index 39ddff857..6496b8ac0 100644
--- a/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
+++ b/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
@@ -624,10 +624,10 @@ extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv)
* Try connect the server to the network.
*/
rc = pDhcp->tryGoOnline();
- if (rc)
+ if (RT_FAILURE(rc))
{
delete pDhcp;
- return rc;
+ return 1;
}
/*
@@ -638,7 +638,7 @@ extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv)
g_pDhcp = NULL;
delete pDhcp;
- return rc;
+ return 0;
}