mirror of
https://github.com/moparisthebest/curl
synced 2025-03-03 10:51:49 -05:00

If libssh2_knownhost_init() returns NULL, like in an OOM situation, the ssh session was freed but the pointer wasn't cleared which made libcurl later call libssh2 to cleanup using the stale pointer. Fixes #6764 Closes #6766