summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network/qdns.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/qdns.cpp b/src/network/qdns.cpp
index 9dcd73dab..d259cc0e4 100644
--- a/src/network/qdns.cpp
+++ b/src/network/qdns.cpp
@@ -2594,6 +2594,8 @@ void TQDns::doResInit()
if (ns->isEmpty()) {
#if defined(Q_MODERN_RES_API)
struct __res_state res;
+ /* the storage must be clean */
+ memset(&res, 0, sizeof(res));
res_ninit( &res );
int i;
// find the name servers to use