From d23fdd96cb0bab7a9cb7c4858f908984ee64bbf0 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 10 Sep 2009 22:59:27 +0000 Subject: [PATCH] * DHCPClient now passes communication problems with NetServer on to caller, as a result failed DHPC-requests will no longer result in bogus static configurations (but an auto-config IP-address will be picked instead) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33049 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/net/DHCPClient.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/servers/net/DHCPClient.cpp b/src/servers/net/DHCPClient.cpp index e52f18b50f..276fe855eb 100644 --- a/src/servers/net/DHCPClient.cpp +++ b/src/servers/net/DHCPClient.cpp @@ -550,10 +550,9 @@ DHCPClient::_Negotiate(dhcp_state state) // configure interface BMessage reply; - Target().SendMessage(&fConfiguration, &reply); - - if (reply.FindInt32("status", &fStatus) != B_OK) - status = B_OK; + status = Target().SendMessage(&fConfiguration, &reply); + if (status == B_OK) + status = reply.FindInt32("status", &fStatus); break; }