aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-07-25 14:41:32 +0200
committerChristian Grothoff <christian@grothoff.org>2019-07-25 14:41:32 +0200
commitcd41be4046bcfce5f61670f76613d4cc04303571 (patch)
treefe5adbd6f26facca7350f736ded9575411d03dc7
parent81a47b20ebdbbee16e4650ef1276f653f1f2bf5f (diff)
downloadlibmicrohttpd-cd41be4046bcfce5f61670f76613d4cc04303571.tar.gz
libmicrohttpd-cd41be4046bcfce5f61670f76613d4cc04303571.zip
fix regression introduced in cc5032b85
-rw-r--r--ChangeLog11
-rw-r--r--src/include/microhttpd.h2
-rw-r--r--src/microhttpd/connection.c4
3 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a057b73..c45326df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
1Thu 25 Jul 2019 02:40:12 PM CEST
2 Fixing regression introduced in cc5032b85 (bit mask matching
3 of the header kinds in MHD_lookup_connection_value()), as
4 reported by Jose Bollo on the mailinglist. -CG/JB
5
1Tue Jul 16 19:56:14 CEST 2019 6Tue Jul 16 19:56:14 CEST 2019
2 Add MHD_OPTION_HTTPS_CERT_CALLBACK2 to allow OCSP stapling 7 Add MHD_OPTION_HTTPS_CERT_CALLBACK2 to allow OCSP stapling
3 and MHD_FEATURE_HTTPS_CERT_CALLBACK2 to check for. -TR 8 and MHD_FEATURE_HTTPS_CERT_CALLBACK2 to check for. -TR
4 9
5Fri Jul 05 2019 22:30:40 MSK 10Fri Jul 05 2019 22:30:40 MSK
6 Releasing libmicrohttpd 0.9.65. -EG 11 Releasing libmicrohttpd 0.9.65. -EG
@@ -102,7 +107,7 @@ Sun Apr 21 16:40:00 MSK 2019
102 107
103Fri Apr 19 23:00:00 MSK 2019 108Fri Apr 19 23:00:00 MSK 2019
104 Rewritten SHA-256 calculations from scratch to avoid changing LGPL version; 109 Rewritten SHA-256 calculations from scratch to avoid changing LGPL version;
105 Added usage of GCC/Clang built-ins for bytes swap to significantly improve 110 Added usage of GCC/Clang built-ins for bytes swap to significantly improve
106 speed of MD5 and SHA-256 calculation on platforms with known endianness. 111 speed of MD5 and SHA-256 calculation on platforms with known endianness.
107 Added test for SHA-256 calculations. -EG 112 Added test for SHA-256 calculations. -EG
108 113
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 9d28cdb1..4c05ffac 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -132,7 +132,7 @@ typedef intptr_t ssize_t;
132 * Current version of the library. 132 * Current version of the library.
133 * 0x01093001 = 1.9.30-1. 133 * 0x01093001 = 1.9.30-1.
134 */ 134 */
135#define MHD_VERSION 0x00096502 135#define MHD_VERSION 0x00096503
136 136
137/** 137/**
138 * MHD-internal return code for "YES". 138 * MHD-internal return code for "YES".
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 8cc3490b..87c77c29 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1040,7 +1040,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection,
1040 { 1040 {
1041 for (pos = connection->headers_received; NULL != pos; pos = pos->next) 1041 for (pos = connection->headers_received; NULL != pos; pos = pos->next)
1042 { 1042 {
1043 if ( (kind == pos->kind) && 1043 if ( (0 != (kind & pos->kind)) &&
1044 (NULL == pos->header) ) 1044 (NULL == pos->header) )
1045 break; 1045 break;
1046 } 1046 }
@@ -1049,7 +1049,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection,
1049 { 1049 {
1050 for (pos = connection->headers_received; NULL != pos; pos = pos->next) 1050 for (pos = connection->headers_received; NULL != pos; pos = pos->next)
1051 { 1051 {
1052 if ( (kind == pos->kind) && 1052 if ( (0 != (kind & pos->kind)) &&
1053 (key_size == pos->header_size) && 1053 (key_size == pos->header_size) &&
1054 ( (key == pos->header) || 1054 ( (key == pos->header) ||
1055 (MHD_str_equal_caseless_bin_n_ (key, 1055 (MHD_str_equal_caseless_bin_n_ (key,