mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
Prevent running stunnel unless its version can be determined.
This commit is contained in:
parent
f07f17f2a4
commit
6f273b1a5f
@ -87,7 +87,13 @@ foreach my $veropt (('-version', '-V')) {
|
||||
|
||||
my $cmd;
|
||||
if(!$ver_major) {
|
||||
print "no stunnel or unknown version\n";
|
||||
if(-x "$stunnel" && ! -d "$stunnel") {
|
||||
print "unknown stunnel version\n";
|
||||
}
|
||||
else {
|
||||
print "no stunnel\n";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
elsif($ver_major < 4) {
|
||||
# stunnel version less than 4.00
|
||||
|
Loading…
Reference in New Issue
Block a user