From 48c8abc3266bc9f56ea60e3130bcc73680453a16 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 9 Jul 2012 07:19:48 +0000 Subject: [PATCH] - fix segfault --- src/gns/gnunet-gns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.25.1