aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_namespace.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-09-07 12:46:16 +0000
committerChristian Grothoff <christian@grothoff.org>2010-09-07 12:46:16 +0000
commit9f819295317d47d964658a15a4d27e86c3d08cb1 (patch)
tree2790f3d6d9b486716edba9f8786348f741f8041f /src/fs/fs_namespace.c
parent5445da592ef5cba4a471b92e0281b00148a4dade (diff)
downloadgnunet-9f819295317d47d964658a15a4d27e86c3d08cb1.tar.gz
gnunet-9f819295317d47d964658a15a4d27e86c3d08cb1.zip
survive NULL
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r--src/fs/fs_namespace.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index 8e13df9bc..903cb07f3 100644
--- a/src/fs/fs_namespace.c
+++ b/src/fs/fs_namespace.c
@@ -361,7 +361,8 @@ advertisement_cont (void *cls,
361 &do_disconnect, 361 &do_disconnect,
362 ac->dsh, 362 ac->dsh,
363 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 363 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
364 ac->cont (ac->cont_cls, NULL, msg); 364 if (ac->cont != NULL)
365 ac->cont (ac->cont_cls, NULL, msg);
365 GNUNET_FS_uri_destroy (ac->ksk_uri); 366 GNUNET_FS_uri_destroy (ac->ksk_uri);
366 GNUNET_free (ac->pt); 367 GNUNET_free (ac->pt);
367 GNUNET_free (ac->nb); 368 GNUNET_free (ac->nb);
@@ -376,7 +377,8 @@ advertisement_cont (void *cls,
376 &do_disconnect, 377 &do_disconnect,
377 ac->dsh, 378 ac->dsh,
378 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 379 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
379 ac->cont (ac->cont_cls, ac->ksk_uri, NULL); 380 if (ac->cont != NULL)
381 ac->cont (ac->cont_cls, ac->ksk_uri, NULL);
380 GNUNET_FS_uri_destroy (ac->ksk_uri); 382 GNUNET_FS_uri_destroy (ac->ksk_uri);
381 GNUNET_free (ac->pt); 383 GNUNET_free (ac->pt);
382 GNUNET_free (ac->nb); 384 GNUNET_free (ac->nb);
@@ -775,9 +777,10 @@ sb_put_cont (void *cls,
775 } 777 }
776 if (GNUNET_OK != success) 778 if (GNUNET_OK != success)
777 { 779 {
778 psc->cont (psc->cont_cls, 780 if (psc->cont != NULL)
779 NULL, 781 psc->cont (psc->cont_cls,
780 msg); 782 NULL,
783 msg);
781 } 784 }
782 else 785 else
783 { 786 {
@@ -804,9 +807,10 @@ sb_put_cont (void *cls,
804 psc->nsn = NULL; 807 psc->nsn = NULL;
805 write_update_information_graph (psc->namespace); 808 write_update_information_graph (psc->namespace);
806 } 809 }
807 psc->cont (psc->cont_cls, 810 if (psc->cont != NULL)
808 psc->uri, 811 psc->cont (psc->cont_cls,
809 NULL); 812 psc->uri,
813 NULL);
810 } 814 }
811 GNUNET_FS_namespace_delete (psc->namespace, 815 GNUNET_FS_namespace_delete (psc->namespace,
812 GNUNET_NO); 816 GNUNET_NO);