if (!raw)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"No private zone key file name specified in configuration!\n");
- shorten_key = NULL;
+ private_key = NULL;
}
else
{
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_("Failed to connect to GNS\n"));
+ if (NULL != shorten_key)
+ {
+ GNUNET_CRYPTO_rsa_key_free (shorten_key);
+ shorten_key = NULL;
+ }
return;
}
- if (NULL != shorten_name)
+ if ((NULL != shorten_name) && (NULL != shorten_zone) && (NULL != private_zone))
{
shorten_request = GNUNET_GNS_shorten_zone (gns, shorten_name,
private_zone,