mirror of
https://github.com/curl/curl.git
synced 2026-04-18 04:11:40 +03:00
secureserver.pl: fix stunnel version parsing
- Allow the stunnel minor-version version part to be zero. Prior to this change with the stunnel version scheme of <major>.<minor> if either part was 0 then version parsing would fail, causing secureserver.pl to fail with error "No stunnel", causing tests that use the SSL protocol to be skipped. As a practical matter this bug can only be caused by a minor-version part of 0, since the major-version part is always greater than 0. Closes https://github.com/curl/curl/pull/11722
This commit is contained in:
parent
f2bc51a0bd
commit
51686e0054
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ foreach my $veropt (('-version', '-V')) {
|
|||
}
|
||||
last if($ver_major);
|
||||
}
|
||||
if((!$ver_major) || (!$ver_minor)) {
|
||||
if((!$ver_major) || !defined($ver_minor)) {
|
||||
if(-x "$stunnel" && ! -d "$stunnel") {
|
||||
print "$ssltext Unknown stunnel version\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue