curl-curl/lib/vssh
Stefan Eissing 1e85cb4b7b
scp/sftp: fix disconnect
When a SCP/SFTP connection calls the protocol handler disconnect, it
required the connections *and* the easy handles SSH meta data to be
present. When the disconnect is called with an admin handle, the easy
meta data is not present, which prevented the shutdown to run.

The easy meta data is however not necessary to run the shutdown state
machine. Calling it with a NULL `sshp` is fine. To avoid any mixups,
check `sshp` in state operations that need it.

Fixes #19293
Reported-by: And-yW on github
Closes #19295
2025-10-31 15:56:58 +01:00
..
curl_path.c curl_path: add curlx_dyn_free() on an error path 2025-10-22 09:37:54 +02:00
curl_path.h lib: include files using known path 2025-04-08 17:00:00 +02:00
libssh2.c scp/sftp: fix disconnect 2025-10-31 15:56:58 +01:00
libssh.c scp/sftp: fix disconnect 2025-10-31 15:56:58 +01:00
ssh.h libssh2: clarify that sshp->path is always at least one byte 2025-10-06 13:57:19 +02:00