From e8ae99c70f0b6e01c7c3b5116b66a451a2143625 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Tue, 30 Nov 2010 19:21:35 +0000 Subject: [PATCH] get_symbiandns: return ENOENT if no DNS-servers found --- src/dns/symbian/srv.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dns/symbian/srv.cpp b/src/dns/symbian/srv.cpp index a6994d7..5283828 100644 --- a/src/dns/symbian/srv.cpp +++ b/src/dns/symbian/srv.cpp @@ -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;