Arreglo error de variable sin inicializar en nameserver de IPv6.

master
Félix Arreola Rodríguez 2022-09-16 23:32:05 -05:00
parent 670c3c5bd9
commit 01e3996254
1 changed files with 2 additions and 0 deletions

View File

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