diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2023-03-06 03:47:16 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2023-03-06 03:52:46 -0500 |
commit | c12e8bfa894c32d6a82cf662859cd0015db1ae18 (patch) | |
tree | 2fed2b91e012a75a57ce5ff98c6219d4b6481484 /tests/sshhelp.pm | |
parent | 54605666ed43c8c70967e71aa43fb6db2e6788f8 (diff) | |
download | curl-c12e8bfa894c32d6a82cf662859cd0015db1ae18.tar.gz |
tests: fix gnutls-serv check
- If gnutls-serv doesn't exist then don't try to execute it.
Follow-up to 2fdc1d81.
Closes https://github.com/curl/curl/pull/10688
Diffstat (limited to 'tests/sshhelp.pm')
-rw-r--r-- | tests/sshhelp.pm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/sshhelp.pm b/tests/sshhelp.pm index 6cba41d9e..e2e1e5eb9 100644 --- a/tests/sshhelp.pm +++ b/tests/sshhelp.pm @@ -409,15 +409,17 @@ sub find_sshkeygen { # sub find_httptlssrv { my $p = find_exe_file_hpath($httptlssrvexe); - my @o = `$p -l`; - my $found; - for(@o) { - if(/Key exchange: SRP/) { - $found = 1; - last; + if($p) { + my @o = `"$p" -l`; + my $found; + for(@o) { + if(/Key exchange: SRP/) { + $found = 1; + last; + } } + return $p if($found); } - return $p if($found); } |