diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-26 11:37:50 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-26 11:37:50 +0000 |
commit | 435eded3cf216363f75e1904254c22c7c5fd987a (patch) | |
tree | 00a06f617239fec39770968c423294953fab2e3e /src/transport/plugin_transport_http.c | |
parent | 074ec517f192b7a74b1180c20144facf4cf8cf7d (diff) | |
download | gnunet-435eded3cf216363f75e1904254c22c7c5fd987a.tar.gz gnunet-435eded3cf216363f75e1904254c22c7c5fd987a.zip |
- fix for http
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r-- | src/transport/plugin_transport_http.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 076bef130..fb06bd7f5 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c | |||
@@ -532,6 +532,23 @@ lookup_session (struct Plugin *plugin, | |||
532 | return NULL; | 532 | return NULL; |
533 | } | 533 | } |
534 | 534 | ||
535 | int | ||
536 | exist_session (struct Plugin *plugin, struct Session *s) | ||
537 | { | ||
538 | struct Session * head; | ||
539 | |||
540 | GNUNET_assert (NULL != plugin); | ||
541 | GNUNET_assert (NULL != s); | ||
542 | |||
543 | for (head = plugin->head; head != NULL; head = head->next) | ||
544 | { | ||
545 | if (head == s) | ||
546 | return GNUNET_YES; | ||
547 | } | ||
548 | return GNUNET_NO; | ||
549 | } | ||
550 | |||
551 | |||
535 | 552 | ||
536 | void | 553 | void |
537 | delete_session (struct Session *s) | 554 | delete_session (struct Session *s) |