libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit fbbc9197edec8a94ef01b723b7e04d21b4b1579b
parent e22f196d71f9e28095bbc99c3504e8d1d4a1456c
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 18 Sep 2013 16:36:22 +0000

-oops

Diffstat:
Msrc/microhttpd/connection.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -2353,11 +2353,11 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) } if (MHD_YES == try_ready_normal_body (connection)) { + if (NULL != connection->response->crc) + pthread_mutex_unlock (&connection->response->mutex); connection->state = MHD_CONNECTION_NORMAL_BODY_READY; break; } - if (connection->response->crc != NULL) - pthread_mutex_unlock (&connection->response->mutex); /* not ready, no socket action */ break; case MHD_CONNECTION_CHUNKED_BODY_READY: