diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-06-24 13:04:22 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-06-24 13:04:22 +0000 |
commit | 58b2b9afd2fd682c033588a59227b8f422dd2777 (patch) | |
tree | 538646a4b25fa95e156b969d4e7d400abf738b6a /src | |
parent | 3786ddc89f474a63a9006f4413a2044430f76770 (diff) | |
download | gnunet-58b2b9afd2fd682c033588a59227b8f422dd2777.tar.gz gnunet-58b2b9afd2fd682c033588a59227b8f422dd2777.zip |
- don't try update info on NULL connections, avoid segfault for #3453
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index f71ac1f7b..52fb963cf 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -595,12 +595,14 @@ conn_message_sent (void *cls, | |||
595 | { | 595 | { |
596 | forced = GNUNET_NO; | 596 | forced = GNUNET_NO; |
597 | } | 597 | } |
598 | if (NULL == c | 598 | if (NULL == c) |
599 | && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN | ||
600 | && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY) | ||
601 | { | 599 | { |
602 | LOG (GNUNET_ERROR_TYPE_ERROR, "Message %s sent on NULL connection!\n", | 600 | if (type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN |
603 | GC_m2s (type)); | 601 | && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY) |
602 | { | ||
603 | LOG (GNUNET_ERROR_TYPE_ERROR, "Message %s sent on NULL connection!\n", | ||
604 | GC_m2s (type)); | ||
605 | } | ||
604 | return; | 606 | return; |
605 | } | 607 | } |
606 | LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages); | 608 | LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages); |