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:
431dd30
)
allow null continuation for core_api_peer_request
author
Nathan S. Evans
<evans@in.tum.de>
Tue, 14 Sep 2010 08:47:08 +0000
(08:47 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Tue, 14 Sep 2010 08:47:08 +0000
(08:47 +0000)
src/core/core_api_peer_request.c
patch
|
blob
|
history
diff --git
a/src/core/core_api_peer_request.c
b/src/core/core_api_peer_request.c
index 2578e64525b27e875aa96e96cd509eaa1827b52b..96640990ab3b360bd869712e788ede6baf3dce25 100644
(file)
--- a/
src/core/core_api_peer_request.c
+++ b/
src/core/core_api_peer_request.c
@@
-91,10
+91,11
@@
send_request (void *cls,
if (buf == NULL)
{
- GNUNET_SCHEDULER_add_continuation (prh->sched,
- prh->cont,
- prh->cont_cls,
- GNUNET_SCHEDULER_REASON_TIMEOUT);
+ if (prh->cont != NULL)
+ GNUNET_SCHEDULER_add_continuation (prh->sched,
+ prh->cont,
+ prh->cont_cls,
+ GNUNET_SCHEDULER_REASON_TIMEOUT);
GNUNET_CLIENT_disconnect (prh->client, GNUNET_NO);
GNUNET_free (prh);
return 0;