"Get authority failed!\n");
strcpy (ctask->authority, "");
}
-
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Get authority yielded %s\n", auth_name);
- strcpy (ctask->authority, auth_name);
+ else
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Get authority yielded %s\n", auth_name);
+ strcpy (ctask->authority, auth_name);
+ }
GNUNET_GNS_lookup_zone (gns_handle,
ctask->host,
int ret;
unsigned int serial;
- unsigned int bits;
size_t key_buf_size;
size_t cert_buf_size;
gnutls_x509_crt_t request;
- gnutls_x509_privkey_t rsa;
time_t etime;
struct tm *tm_data;
line[strlen(line)-1] = '\0';
if (af == AF_INET)
{
- inet_pton(af, line, &(u->data.ipv4[u->count++]));
- u->data_len += sizeof(ipv4_address_t);
+ if (inet_pton(af, line, &(u->data.ipv4[u->count++])))
+ u->data_len += sizeof(ipv4_address_t);
+ else
+ {
+ fclose (p);
+ free (cmd);
+ return -1;
+ }
}
else if ((af == AF_INET6))
{
- inet_pton(af, line, &(u->data.ipv6[u->count++]));
- u->data_len += sizeof(ipv6_address_t);
+ if (inet_pton(af, line, &(u->data.ipv6[u->count++])))
+ u->data_len += sizeof(ipv6_address_t);
+ else
+ {
+ fclose (p);
+ free (cmd);
+ return -1;
+ }
}
}
}
+ fclose (p);
}
- fclose(p);
- free(cmd);
+ free (cmd);
return 0;