commit 1d5bf289b439e45efa6b54d62b578f0747359642
parent 0c435287dce7f5b53a0a02cfd4f505e544d47742
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 27 Jan 2011 09:49:34 +0000
mantis 1651
Diffstat:
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Thu Jan 27 10:48:55 CET 2011
+ Removing bogus assertion in basic authentication code (#1651). -CG/timn
+
Tue Jan 25 14:10:45 CET 2011
Releasing libmicrohttpd 0.9.6. -CG
diff --git a/src/daemon/digestauth.c b/src/daemon/digestauth.c
@@ -731,15 +731,10 @@ MHD_queue_basic_auth_fail_response(struct MHD_Connection *connection,
size_t hlen = strlen(realm) + strlen("Basic realm=\"\"") + 1;
char header[hlen];
- if (hlen !=
- snprintf(header,
- sizeof(header),
- "Basic realm=\"%s\"",
- realm))
- {
- EXTRA_CHECK (0);
- return MHD_NO;
- }
+ snprintf(header,
+ sizeof (header),
+ "Basic realm=\"%s\"",
+ realm);
ret = MHD_add_response_header(response,
MHD_HTTP_HEADER_WWW_AUTHENTICATE,
header);