Arreglo error de variable sin inicializar en nameserver de IPv6.
parent
670c3c5bd9
commit
01e3996254
|
@ -712,6 +712,8 @@ void dns2_add_nserver (DNS2 *obj, const char *ip) {
|
||||||
memcpy (&ns->server_addr, &v6, sizeof (v6));
|
memcpy (&ns->server_addr, &v6, sizeof (v6));
|
||||||
ns->addr_size = sizeof (v6);
|
ns->addr_size = sizeof (v6);
|
||||||
strncpy (ns->name, ip, sizeof (ns->name));
|
strncpy (ns->name, ip, sizeof (ns->name));
|
||||||
|
ns->socket = -1;
|
||||||
|
ns->fatal_network_error = 0;
|
||||||
|
|
||||||
obj->nameservers = g_list_append (obj->nameservers, ns);
|
obj->nameservers = g_list_append (obj->nameservers, ns);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue