From 47f034c129653352ebf258000765f98f1910f2f4 Mon Sep 17 00:00:00 2001 From: Denis Kozadaev Date: Wed, 14 Jun 2023 17:10:42 +0300 Subject: SunOS res_ninit() requires a clean structure Signed-off-by: Denis Kozadaev init structure without condition Signed-off-by: Denis Kozadaev --- src/network/qdns.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/network/qdns.cpp') 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 -- cgit v1.2.1