]> git.ipfire.org Git - thirdparty/curl.git/commit
libssh2: ignore timeout during disconnect
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 May 2021 11:21:15 +0000 (13:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 May 2021 06:20:40 +0000 (08:20 +0200)
commit7645324072c2f052fa662aded6f26821141ecda1
tree51c3c781ffd08456824fa1b6c994c02bb6a8ec16
parent7d7a0a8b09fe55f17f75f02f79a5ac20ace46a5e
libssh2: ignore timeout during disconnect

... to avoid memory leaks!

libssh2 is tricky as we have to deal with the non-blockiness even in
close and shutdown cases. In the cases when we shutdown after a timeout
already expired, it is crucial that curl doen't let the timeout abort
the shutdown process as that then leaks memory!

Reported-by: Benjamin Riefenstahl
Fixes #6990
lib/vssh/libssh2.c