NetworkAddress: Fix things yet again.
If I had used my head instead of blindly c&p'ing the suggested code from Axel's message, I would have realized that Unset() unsets fStatus too. Not a bright thing to do on my part...
This commit is contained in:
@@ -177,9 +177,9 @@ BNetworkAddress::SetTo(const char* host, uint16 port, uint32 flags)
|
|||||||
|
|
||||||
cookie = 0;
|
cookie = 0;
|
||||||
status = resolver->GetNextAddress(&cookie, *this);
|
status = resolver->GetNextAddress(&cookie, *this);
|
||||||
fStatus = status;
|
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
Unset();
|
Unset();
|
||||||
|
fStatus = status;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,9 +206,9 @@ BNetworkAddress::SetTo(const char* host, const char* service, uint32 flags)
|
|||||||
|
|
||||||
cookie = 0;
|
cookie = 0;
|
||||||
status = resolver->GetNextAddress(&cookie, *this);
|
status = resolver->GetNextAddress(&cookie, *this);
|
||||||
fStatus = status;
|
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
Unset();
|
Unset();
|
||||||
|
fStatus = status;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,9 +233,9 @@ BNetworkAddress::SetTo(int family, const char* host, uint16 port, uint32 flags)
|
|||||||
|
|
||||||
uint32 cookie = 0;
|
uint32 cookie = 0;
|
||||||
status = resolver->GetNextAddress(&cookie, *this);
|
status = resolver->GetNextAddress(&cookie, *this);
|
||||||
fStatus = status;
|
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
Unset();
|
Unset();
|
||||||
|
fStatus = status;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,9 +261,9 @@ BNetworkAddress::SetTo(int family, const char* host, const char* service,
|
|||||||
|
|
||||||
uint32 cookie = 0;
|
uint32 cookie = 0;
|
||||||
status = resolver->GetNextAddress(&cookie, *this);
|
status = resolver->GetNextAddress(&cookie, *this);
|
||||||
fStatus = status;
|
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
Unset();
|
Unset();
|
||||||
|
fStatus = status;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user