Network/DNSClientService: fixed missing error check.
* CID 1251065.
This commit is contained in:
@@ -182,7 +182,9 @@ DNSSettingsView::MessageReceived(BMessage* message)
|
||||
status_t
|
||||
DNSSettingsView::_LoadDNSConfiguration()
|
||||
{
|
||||
res_init();
|
||||
if (res_init() != 0)
|
||||
return B_ERROR;
|
||||
|
||||
res_state state = __res_state();
|
||||
|
||||
if (state != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user