projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3786ddc
)
- don't try update info on NULL connections, avoid segfault for #3453
author
Bart Polot
<bart@net.in.tum.de>
Tue, 24 Jun 2014 13:04:22 +0000
(13:04 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Tue, 24 Jun 2014 13:04:22 +0000
(13:04 +0000)
src/cadet/gnunet-service-cadet_connection.c
patch
|
blob
|
history
diff --git
a/src/cadet/gnunet-service-cadet_connection.c
b/src/cadet/gnunet-service-cadet_connection.c
index f71ac1f7b6f9b12b91b0d4f92ff4ee0d04c9ab0b..52fb963cf5b43b7945a3a62753c851dfafac6564 100644
(file)
--- 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,
{
forced = GNUNET_NO;
}
{
forced = GNUNET_NO;
}
- if (NULL == c
- && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN
- && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY)
+ if (NULL == c)
{
{
- LOG (GNUNET_ERROR_TYPE_ERROR, "Message %s sent on NULL connection!\n",
- GC_m2s (type));
+ if (type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN
+ && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY)
+ {
+ LOG (GNUNET_ERROR_TYPE_ERROR, "Message %s sent on NULL connection!\n",
+ GC_m2s (type));
+ }
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);