- free skipped keys on tunnel Axolotl destroy
authorBart Polot <bart@net.in.tum.de>
Wed, 24 Jun 2015 14:00:45 +0000 (14:00 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 24 Jun 2015 14:00:45 +0000 (14:00 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index c94e59e27cb1710d134c02bfd37cfe8975610118..422a1649e3f0ec2911b3c2b7450ba04a1aeb5c90 100644 (file)
@@ -2679,6 +2679,9 @@ destroy_ax (struct CadetTunnel *t)
 
   GNUNET_free_non_null (t->ax->DHRs);
   GNUNET_free_non_null (t->ax->kx_0);
+  while (NULL != t->ax->skipped_head)
+    delete_skipped_key (t, t->ax->skipped_head);
+  GNUNET_assert (0 == t->ax->skipped);
 
   GNUNET_free (t->ax);
   t->ax = NULL;