From: Matthias Wachs Date: Mon, 9 Jul 2012 07:19:48 +0000 (+0000) Subject: - fix segfault X-Git-Tag: initial-import-from-subversion-38251~12582 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48c8abc3266bc9f56ea60e3130bcc73680453a16;p=oweals%2Fgnunet.git - fix segfault --- diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index aad8cc833..fe2bde1d1 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c @@ -290,7 +290,8 @@ run (void *cls, char *const *args, const char *cfgfile, GNUNET_GNS_get_authority(gns, auth_name, &process_auth_result, auth_name); } - GNUNET_CRYPTO_rsa_key_free (shorten_key); + if (NULL != shorten_key) + GNUNET_CRYPTO_rsa_key_free (shorten_key); // FIXME: do work here... //GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);