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