aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-service-revocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-04 21:51:53 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-04 21:51:53 +0100
commit2847375361c620cbd6498fef5f051955786edb59 (patch)
tree953740eadfa4603ec711004c78f51dd312031ad2 /src/revocation/gnunet-service-revocation.c
parent9de5746bd8ba4054c5cba623b7ef1e53739aff87 (diff)
downloadgnunet-2847375361c620cbd6498fef5f051955786edb59.tar.gz
gnunet-2847375361c620cbd6498fef5f051955786edb59.zip
fix memory leak
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r--src/revocation/gnunet-service-revocation.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c
index 8281e9a16..23f654141 100644
--- a/src/revocation/gnunet-service-revocation.c
+++ b/src/revocation/gnunet-service-revocation.c
@@ -759,7 +759,11 @@ handle_revocation_union_request (void *cls,
759 { 759 {
760 peer_entry = new_peer_entry (other_peer); 760 peer_entry = new_peer_entry (other_peer);
761 } 761 }
762 GNUNET_assert (NULL == peer_entry->so); 762 if (NULL != peer_entry->so)
763 {
764 GNUNET_break_op (0);
765 return;
766 }
763 peer_entry->so = GNUNET_SET_accept (request, 767 peer_entry->so = GNUNET_SET_accept (request,
764 GNUNET_SET_RESULT_ADDED, 768 GNUNET_SET_RESULT_ADDED,
765 (struct GNUNET_SET_Option[]) {{ 0 }}, 769 (struct GNUNET_SET_Option[]) {{ 0 }},
@@ -769,8 +773,7 @@ handle_revocation_union_request (void *cls,
769 GNUNET_SET_commit (peer_entry->so, 773 GNUNET_SET_commit (peer_entry->so,
770 revocation_set)) 774 revocation_set))
771 { 775 {
772 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 776 GNUNET_break (0);
773 _("SET service crashed, terminating revocation service\n"));
774 GNUNET_SCHEDULER_shutdown (); 777 GNUNET_SCHEDULER_shutdown ();
775 return; 778 return;
776 } 779 }