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:
5f01efe
)
check for connect failure
author
Christian Grothoff
<christian@grothoff.org>
Thu, 29 Oct 2009 23:24:10 +0000
(23:24 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 29 Oct 2009 23:24:10 +0000
(23:24 +0000)
src/core/core_api.c
patch
|
blob
|
history
diff --git
a/src/core/core_api.c
b/src/core/core_api.c
index 2157584ab7ca6132e050ab6e18507af0ba5e081b..2a04e24831e2686c1285384f93ef357ffc295e39 100644
(file)
--- a/
src/core/core_api.c
+++ b/
src/core/core_api.c
@@
-808,6
+808,12
@@
GNUNET_CORE_connect (struct GNUNET_SCHEDULER_Handle *sched,
h->outbound_hdr_only = outbound_hdr_only;
h->handlers = handlers;
h->client = GNUNET_CLIENT_connect (sched, "core", cfg);
+ if (h->client == NULL)
+ {
+ init (cls, NULL, NULL, NULL);
+ GNUNET_free (h);
+ return;
+ }
h->startup_timeout = GNUNET_TIME_relative_to_absolute (timeout);
h->hcnt = 0;
while (handlers[h->hcnt].callback != NULL)