aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-26 11:37:50 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-26 11:37:50 +0000
commit435eded3cf216363f75e1904254c22c7c5fd987a (patch)
tree00a06f617239fec39770968c423294953fab2e3e /src/transport/plugin_transport_http.c
parent074ec517f192b7a74b1180c20144facf4cf8cf7d (diff)
downloadgnunet-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.c17
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
535int
536exist_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
536void 553void
537delete_session (struct Session *s) 554delete_session (struct Session *s)