diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-27 09:49:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-27 09:49:34 +0000 |
commit | 1d5bf289b439e45efa6b54d62b578f0747359642 (patch) | |
tree | a0216f4eecdd4c91770490c8008e0e091a034bdc | |
parent | 0c435287dce7f5b53a0a02cfd4f505e544d47742 (diff) | |
download | libmicrohttpd-1d5bf289b439e45efa6b54d62b578f0747359642.tar.gz libmicrohttpd-1d5bf289b439e45efa6b54d62b578f0747359642.zip |
mantis 1651
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/daemon/digestauth.c | 13 |
2 files changed, 7 insertions, 9 deletions
@@ -1,3 +1,6 @@ | |||
1 | Thu Jan 27 10:48:55 CET 2011 | ||
2 | Removing bogus assertion in basic authentication code (#1651). -CG/timn | ||
3 | |||
1 | Tue Jan 25 14:10:45 CET 2011 | 4 | Tue Jan 25 14:10:45 CET 2011 |
2 | Releasing libmicrohttpd 0.9.6. -CG | 5 | Releasing libmicrohttpd 0.9.6. -CG |
3 | 6 | ||
diff --git a/src/daemon/digestauth.c b/src/daemon/digestauth.c index 4415902b..927974e0 100644 --- a/src/daemon/digestauth.c +++ b/src/daemon/digestauth.c | |||
@@ -731,15 +731,10 @@ MHD_queue_basic_auth_fail_response(struct MHD_Connection *connection, | |||
731 | size_t hlen = strlen(realm) + strlen("Basic realm=\"\"") + 1; | 731 | size_t hlen = strlen(realm) + strlen("Basic realm=\"\"") + 1; |
732 | char header[hlen]; | 732 | char header[hlen]; |
733 | 733 | ||
734 | if (hlen != | 734 | snprintf(header, |
735 | snprintf(header, | 735 | sizeof (header), |
736 | sizeof(header), | 736 | "Basic realm=\"%s\"", |
737 | "Basic realm=\"%s\"", | 737 | realm); |
738 | realm)) | ||
739 | { | ||
740 | EXTRA_CHECK (0); | ||
741 | return MHD_NO; | ||
742 | } | ||
743 | ret = MHD_add_response_header(response, | 738 | ret = MHD_add_response_header(response, |
744 | MHD_HTTP_HEADER_WWW_AUTHENTICATE, | 739 | MHD_HTTP_HEADER_WWW_AUTHENTICATE, |
745 | header); | 740 | header); |