fix use after free and mantis 0003257
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 20 Jan 2014 09:04:50 +0000 (09:04 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 20 Jan 2014 09:04:50 +0000 (09:04 +0000)
src/transport/gnunet-service-transport_blacklist.c

index 6ea794ce10ca0e27c188be63a6e9bd150eea2c40..98551a4959611304c0396aa441acaae28a8bb68e 100644 (file)
@@ -591,7 +591,9 @@ GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client,
                   "Blacklist check failed, peer not allowed\n");
       bc->cont (bc->cont_cls, &bc->peer, GNUNET_NO);
       GNUNET_CONTAINER_DLL_remove (bc_head, bc_tail, bc);
+      GNUNET_SERVER_receive_done (bl->client, GNUNET_OK);
       GNUNET_free (bc);
+      return;
     }
     else
     {