diff --git a/src/dns2.c b/src/dns2.c index 4aa1916..7c4a032 100644 --- a/src/dns2.c +++ b/src/dns2.c @@ -712,6 +712,8 @@ void dns2_add_nserver (DNS2 *obj, const char *ip) { memcpy (&ns->server_addr, &v6, sizeof (v6)); ns->addr_size = sizeof (v6); strncpy (ns->name, ip, sizeof (ns->name)); + ns->socket = -1; + ns->fatal_network_error = 0; obj->nameservers = g_list_append (obj->nameservers, ns);