diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-28 09:32:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-28 09:32:08 +0000 |
commit | 991598830f7944e689604c3b85d7675fe6150ca6 (patch) | |
tree | f09537b5bd336c2a0904fd443f362ef697e7e49a | |
parent | 8c6113b6e028dba9cb58020b6f718e471353cf1d (diff) | |
download | libmicrohttpd-991598830f7944e689604c3b85d7675fe6150ca6.tar.gz libmicrohttpd-991598830f7944e689604c3b85d7675fe6150ca6.zip |
-check for NULL
-rw-r--r-- | src/microhttpd/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 4b30a4c0..27bff077 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2688,6 +2688,7 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
2688 | connection->response_write_position = response->total_size; | 2688 | connection->response_write_position = response->total_size; |
2689 | } | 2689 | } |
2690 | if ( (MHD_CONNECTION_HEADERS_PROCESSED == connection->state) && | 2690 | if ( (MHD_CONNECTION_HEADERS_PROCESSED == connection->state) && |
2691 | (NULL != connection->method) && | ||
2691 | ( (0 == strcasecmp (connection->method, | 2692 | ( (0 == strcasecmp (connection->method, |
2692 | MHD_HTTP_METHOD_POST)) || | 2693 | MHD_HTTP_METHOD_POST)) || |
2693 | (0 == strcasecmp (connection->method, | 2694 | (0 == strcasecmp (connection->method, |