mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
code cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user