libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7b0a0ab132654eb064e4aa561e69ff1521482e96
parent 690283f92f20c057850ba51f8d2884131e3adc7d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  7 Jul 2010 17:34:47 +0000

code cleanup

Diffstat:
Mdoc/examples/basicauthentication.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/doc/examples/basicauthentication.c b/doc/examples/basicauthentication.c @@ -72,15 +72,14 @@ is_authenticated (struct MHD_Connection *connection, strcat (expected, password); expected_b64 = string_to_base64 (expected); + free (expected); if (NULL == expected_b64) - return 0; + return 0; - strcpy (expected, strbase); authenticated = (strcmp (headervalue + strlen (strbase), expected_b64) == 0); free (expected_b64); - return authenticated; }