tiny cleanups
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20524 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
37c50abfaf
commit
90d110b64c
@ -366,8 +366,8 @@ NetServer::MessageReceived(BMessage* message)
|
||||
|
||||
case kRegisterStatusReplicant:
|
||||
{
|
||||
message->FindMessenger("messenger", &fStatusMessenger);
|
||||
_UpdateReplicantStatus();
|
||||
if (message->FindMessenger("messenger", &fStatusMessenger) == B_OK)
|
||||
_UpdateReplicantStatus();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -181,11 +181,11 @@ StatusReplicant::ShowConfiguration(BMessage *message)
|
||||
if (status != kStatusConnected && status != kStatusLinkNoConfig)
|
||||
return;
|
||||
|
||||
int sock = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (sock < 0)
|
||||
if (strlen(device) > IF_NAMESIZE)
|
||||
return;
|
||||
|
||||
if (strlen(device) > IF_NAMESIZE)
|
||||
int sock = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (sock < 0)
|
||||
return;
|
||||
|
||||
ifreq request;
|
||||
|
Loading…
Reference in New Issue
Block a user