mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
-fix theoretical use-after-free in test on error path
This commit is contained in:
@@ -114,7 +114,8 @@
|
||||
#define mhdErrorExit(ignore) _mhdErrorExit_func (NULL, NULL, __LINE__)
|
||||
#define mhdErrorExitDesc(errDesc) _mhdErrorExit_func (errDesc, NULL, __LINE__)
|
||||
#define checkCURLE_OK(libcurlcall) \
|
||||
_checkCURLE_OK_func((libcurlcall), _MHD_STRMACRO(libcurlcall), NULL, __LINE__)
|
||||
_checkCURLE_OK_func ((libcurlcall), _MHD_STRMACRO (libcurlcall), NULL, \
|
||||
__LINE__)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -388,7 +389,6 @@ ahc_echo (void *cls,
|
||||
mhdErrorExitDesc ("'userhash_hex' is NOT zero");
|
||||
else if (NULL != creds->userhash_bin)
|
||||
mhdErrorExitDesc ("'userhash_bin' is NOT NULL");
|
||||
MHD_free (creds);
|
||||
|
||||
dinfo = MHD_digest_auth_get_request_info3 (connection);
|
||||
if (NULL == dinfo)
|
||||
@@ -488,6 +488,7 @@ ahc_echo (void *cls,
|
||||
dinfo->realm);
|
||||
mhdErrorExitDesc ("Wrong 'realm'");
|
||||
}
|
||||
MHD_free (creds);
|
||||
MHD_free (dinfo);
|
||||
|
||||
check_res = MHD_digest_auth_check3 (connection, REALM, USERNAME,
|
||||
|
||||
Reference in New Issue
Block a user