]> git.ipfire.org Git - thirdparty/curl.git/commit
ntlm: free target_info before (re-)malloc
authorDaniel Stenberg <daniel@haxx.se>
Sun, 26 Jul 2020 15:00:48 +0000 (17:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 26 Jul 2020 21:48:36 +0000 (23:48 +0200)
commit376d5bb323c03c0fc4af266c03abac8f067fbd0e
tree1ee4b2143b64e3af78c638e51688712f5e498bc2
parent730dc48253e0283cebfe31b29eb7dbec6c7d3d5d
ntlm: free target_info before (re-)malloc

OSS-Fuzz found a way this could get called again with the pointer still
pointing to a malloc'ed memory, leading to a leak.

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24379

Closes #5724
lib/vauth/ntlm.c