get_symbiandns: return ENOENT if no DNS-servers found
This commit is contained in:
parent
2e2061c0db
commit
e8ae99c70f
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ int get_symbiandns(struct sa *nsv, uint32_t *n)
|
|||
sock.Close();
|
||||
serv.Close();
|
||||
|
||||
if (i == 0)
|
||||
return ENOENT;
|
||||
|
||||
*n = i;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue