commit 29529aefd1a38449647a3cea724635e87d01d3ea
parent 7b0a0ab132654eb064e4aa561e69ff1521482e96
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 9 Jul 2010 11:11:00 +0000
fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
@@ -163,10 +163,10 @@ is_authenticated (struct MHD_Connection *connection,
strcat (expected, password);
expected_b64 = string_to_base64 (expected);
+ free (expected);
if (NULL == expected_b64)
return 0;
- strcpy (expected, strbase);
authenticated =
(strcmp (headervalue + strlen (strbase), expected_b64) == 0);