diff options
author | Kamil Dudka <kdudka@redhat.com> | 2018-08-14 12:47:18 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2018-08-14 22:08:06 +0200 |
commit | a4c7911a48dadb4f68ba6b38bb1bf3f061b747f6 (patch) | |
tree | 6be74864b10cf873b377cf178af15c6737756efe /tests/data/test656 | |
parent | 1e843a31a49484aeddf8f358e71392205f5fd6b1 (diff) | |
download | curl-a4c7911a48dadb4f68ba6b38bb1bf3f061b747f6.tar.gz |
ssh-libssh: fix infinite connect loop on invalid private key
Added test 656 (based on test 604) to verify the fix.
Bug: https://bugzilla.redhat.com/1595135
Closes #2879
Diffstat (limited to 'tests/data/test656')
-rw-r--r-- | tests/data/test656 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/data/test656 b/tests/data/test656 new file mode 100644 index 000000000..4107d3d17 --- /dev/null +++ b/tests/data/test656 @@ -0,0 +1,33 @@ +<testcase> +<info> +<keywords> +SFTP +FAILURE +</keywords> +</info> + +# +# Client-side +<client> +<server> +sftp +</server> + <name> +SFTP retrieval with nonexistent private key file + </name> + <command> +--key DOES_NOT_EXIST --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --connect-timeout 8 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<valgrind> +disable +</valgrind> +<errorcode> +67 +</errorcode> +</verify> +</testcase> |