make more resillient
authorChristian Grothoff <christian@grothoff.org>
Thu, 4 Aug 2011 08:46:11 +0000 (08:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 4 Aug 2011 08:46:11 +0000 (08:46 +0000)
src/fs/fs_namespace.c

index 34c58f387b7aad21a5865feb6bbf4e27fa67824e..cd0bfc4156ce31c90847faff5cba50aa3497d5ce 100644 (file)
@@ -345,6 +345,11 @@ advertisement_cont (void *cls,
       GNUNET_SCHEDULER_add_continuation (&do_disconnect,
                                         ac->dsh,
                                         GNUNET_SCHEDULER_REASON_PREREQ_DONE);
+      if (msg == NULL)
+       {
+         GNUNET_break (0);
+         msg = _("Unknown error");
+       }
       if (ac->cont != NULL)
        ac->cont (ac->cont_cls, NULL, msg);
       GNUNET_FS_uri_destroy (ac->ksk_uri);