SunOS res_ninit() requires a clean structure

Signed-off-by: Denis Kozadaev <denis@dilos.org>

init structure without condition

Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 47f034c129)
r14.1.x
Denis Kozadaev 11 months ago committed by Michele Calgaro
parent 984ea06ed6
commit eb4fc5004b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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

Loading…
Cancel
Save