[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12179 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12179 - libmicrohttpd/doc/examples |
Date: |
Wed, 7 Jul 2010 19:34:47 +0200 |
Author: grothoff
Date: 2010-07-07 19:34:47 +0200 (Wed, 07 Jul 2010)
New Revision: 12179
Modified:
libmicrohttpd/doc/examples/basicauthentication.c
Log:
code cleanup
Modified: libmicrohttpd/doc/examples/basicauthentication.c
===================================================================
--- libmicrohttpd/doc/examples/basicauthentication.c 2010-07-07 12:04:28 UTC
(rev 12178)
+++ libmicrohttpd/doc/examples/basicauthentication.c 2010-07-07 17:34:47 UTC
(rev 12179)
@@ -72,15 +72,14 @@
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12179 - libmicrohttpd/doc/examples,
gnunet <=