- fix segfault
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 9 Jul 2012 07:19:48 +0000 (07:19 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 9 Jul 2012 07:19:48 +0000 (07:19 +0000)
src/gns/gnunet-gns.c

index aad8cc83314a25258d0b6d5c55d433947003b42f..fe2bde1d1bb5fb238dc7db25475394d895766bd9 100644 (file)
@@ -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);