code cleanup

This commit is contained in:
Christian Grothoff
2010-07-07 17:34:47 +00:00
parent 690283f92f
commit 7b0a0ab132
+2 -3
View File
@@ -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;
}