libmicrohttpd

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

commit 0a930d349c92cffb9b53d750f319816f0785286f
parent 599ccf8fb50febde09eae05dff329c215ad7e395
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 20 Dec 2014 01:01:14 +0000

-avoid cmp with uninitialized pointer, even if harmless

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 @@ -834,8 +834,8 @@ build_header_response (struct MHD_Connection *connection) for (pos = connection->response->first_header; NULL != pos; pos = pos->next) if ( (pos->kind == kind) && - (! ( (pos->value == response_has_keepalive) && - (MHD_YES == must_add_close) && + (! ( (MHD_YES == must_add_close) && + (pos->value == response_has_keepalive) && (0 == strcasecmp (pos->header, MHD_HTTP_HEADER_CONNECTION) ) ) ) ) size += strlen (pos->header) + strlen (pos->value) + 4; /* colon, space, linefeeds */