-handle error
authorChristian Grothoff <christian@grothoff.org>
Tue, 19 Jun 2012 07:52:51 +0000 (07:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 19 Jun 2012 07:52:51 +0000 (07:52 +0000)
src/util/gnunet-rsa.c

index fc9d2006402234fc6e1d1cdd427096412c7ae254..8fc79565affc1041b90be78e454d7f2a7a9aeaf4 100644 (file)
@@ -65,6 +65,8 @@ run (void *cls, char *const *args, const char *cfgfile,
     return;
   }
   pk = GNUNET_CRYPTO_rsa_key_create_from_file (args[0]);
+  if (NULL == pk)
+    return;
   if (print_public_key)
   {
     char *s;