aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-11-05 09:39:22 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-11-05 09:39:22 +0000
commitd6facd44e8a2507598f12645a5a026f31de6b4d2 (patch)
tree3cf2ace816018f5ccc14a5b2ad09836e2db35ad4 /src/transport/plugin_transport_http_server.c
parent572df1a5d96e2fee883dffa59ae250c8efdb0af5 (diff)
downloadgnunet-d6facd44e8a2507598f12645a5a026f31de6b4d2.tar.gz
gnunet-d6facd44e8a2507598f12645a5a026f31de6b4d2.zip
coverity bugs 10360 && 10361
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index fba3601c8..d447846ef 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -540,8 +540,7 @@ http_server_plugin_send (void *cls,
540 return GNUNET_SYSERR; 540 return GNUNET_SYSERR;
541 } 541 }
542 542
543 543 if ((NULL != session->server_send) && (GNUNET_YES == session->server_send->disconnect))
544 if (GNUNET_YES == session->server_send->disconnect)
545 return GNUNET_SYSERR; 544 return GNUNET_SYSERR;
546 545
547 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, session->plugin->name, 546 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, session->plugin->name,
@@ -567,10 +566,9 @@ http_server_plugin_send (void *cls,
567 stat_txt, msgbuf_size, GNUNET_NO); 566 stat_txt, msgbuf_size, GNUNET_NO);
568 GNUNET_free (stat_txt); 567 GNUNET_free (stat_txt);
569 568
570 server_reschedule (session->plugin, session->server_send->mhd_daemon, GNUNET_YES); 569 server_reschedule (session->plugin, session->server_send->mhd_daemon,
570 (NULL != session->server_send) ? GNUNET_YES : GNUNET_NO);
571 server_reschedule_session_timeout (session); 571 server_reschedule_session_timeout (session);
572
573 /* struct Plugin *plugin = cls; */
574 return bytes_sent; 572 return bytes_sent;
575} 573}
576 574
@@ -1127,7 +1125,7 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin,
1127 if (direction == _RECEIVE) 1125 if (direction == _RECEIVE)
1128 s->server_recv = sc; 1126 s->server_recv = sc;
1129 1127
1130 if ((NULL != s->server_send) && (NULL != s->server_send)) 1128 if ((NULL != s->server_send) && (NULL != s->server_recv))
1131 s->connect_in_progress = GNUNET_NO; /* PUT and GET are connected */ 1129 s->connect_in_progress = GNUNET_NO; /* PUT and GET are connected */
1132 1130
1133#if MHD_VERSION >= 0x00090E00 1131#if MHD_VERSION >= 0x00090E00