diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/http/http_auth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/http/http_auth.c b/source4/lib/http/http_auth.c index 701d9b3bae3..654183391e2 100644 --- a/source4/lib/http/http_auth.c +++ b/source4/lib/http/http_auth.c @@ -61,7 +61,10 @@ static NTSTATUS http_parse_auth_response(enum http_auth_method auth, struct http_header *h; for (h = auth_response->headers; h != NULL; h = h->next) { - if (strncasecmp(h->key, "WWW-Authenticate", 16) != 0) { + int cmp; + + cmp = strcasecmp(h->key, "WWW-Authenticate"); + if (cmp != 0) { continue; } |