diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-03-29 05:45:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-03-29 05:45:46 +0000 |
commit | 30ce578efc5890c3544b381abadfcb1ba33c7fe7 (patch) | |
tree | 4754814b3a6e1dd69aea6585d31a7b52400775b6 /src/transport/plugin_transport_http_client.c | |
parent | 2c3a332d522d0fa9400fa7e51a0bb32d9ed2b68f (diff) | |
download | gnunet-30ce578efc5890c3544b381abadfcb1ba33c7fe7.tar.gz gnunet-30ce578efc5890c3544b381abadfcb1ba33c7fe7.zip |
destroy session if connect fails
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 0554b1957..ed6d84471 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -1429,7 +1429,8 @@ client_connect (struct Session *s) | |||
1429 | if ((GNUNET_SYSERR == client_connect_get (s)) || | 1429 | if ((GNUNET_SYSERR == client_connect_get (s)) || |
1430 | (GNUNET_SYSERR == client_connect_put (s))) | 1430 | (GNUNET_SYSERR == client_connect_put (s))) |
1431 | { | 1431 | { |
1432 | GNUNET_break (0); | 1432 | plugin->env->session_end (plugin->env->cls, s->address, s); |
1433 | client_delete_session (s); | ||
1433 | return GNUNET_SYSERR; | 1434 | return GNUNET_SYSERR; |
1434 | } | 1435 | } |
1435 | 1436 | ||