[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34584 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34584 - gnunet/src/cadet |
Date: |
Mon, 15 Dec 2014 08:17:45 +0100 |
Author: bartpolot
Date: 2014-12-15 08:17:45 +0100 (Mon, 15 Dec 2014)
New Revision: 34584
Modified:
gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
Fix resending of connection traffic
* avoid SEGFAULT on connections with no tunnel
* don't leak memory
Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c 2014-12-15 07:17:44 UTC
(rev 34583)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c 2014-12-15 07:17:45 UTC
(rev 34584)
@@ -1279,7 +1279,11 @@
neighbor = get_hop (c, fwd);
while (NULL != (out_msg = GCP_connection_pop (neighbor, c, &destroyed)))
- GCT_resend_message (out_msg, t);
+ {
+ if (NULL != t)
+ GCT_resend_message (out_msg, t);
+ GNUNET_free (out_msg);
+ }
/* All pending messages should have been popped,
* and the connection destroyed by the continuation.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34584 - gnunet/src/cadet,
gnunet <=