Per Gunnar Floe spotted a reversed test in sftp_cleanup_requests().