aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-08-24 11:02:02 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-08-25 20:03:53 +0300
commit6bdb28d9a6e0f1a21619dfa8539c3ec1b562c337 (patch)
treee07164f24c030faa3ecb5148319e9143c1577523
parentac05e45177f633523861a17db52ebca33ae9938f (diff)
downloadlibmicrohttpd-6bdb28d9a6e0f1a21619dfa8539c3ec1b562c337.tar.gz
libmicrohttpd-6bdb28d9a6e0f1a21619dfa8539c3ec1b562c337.zip
gen_auth: fixed fail on semicolon in parameter value
-rw-r--r--src/microhttpd/gen_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/gen_auth.c b/src/microhttpd/gen_auth.c
index 02df8c2b..5c383f1a 100644
--- a/src/microhttpd/gen_auth.c
+++ b/src/microhttpd/gen_auth.c
@@ -399,10 +399,10 @@ parse_dauth_params (const char *str,
399 { 399 {
400 if (0 == str[i]) 400 if (0 == str[i])
401 return false; /* Binary zero in parameter value */ 401 return false; /* Binary zero in parameter value */
402 if (';' == str[i])
403 return false; /* Semicolon in parameter value */
404 i++; 402 i++;
405 } 403 }
404 if (';' == str[i])
405 return false; /* Semicolon in parameter value */
406 value_len = i - value_start; 406 value_len = i - value_start;
407 } 407 }
408 /* Skip all whitespaces after parameter value */ 408 /* Skip all whitespaces after parameter value */