The variable for the no-sni option was not initialized

This commit is contained in:
Gerhard Rieger 2021-11-15 08:45:59 +01:00
parent abdf738d1f
commit 22a738d2d0
2 changed files with 7 additions and 2 deletions

View file

@ -14,6 +14,11 @@ Corrections:
configure now checks for the variant.
Thanks to Robert Zybeck for reporting this issue.
The variable for the no-sni option was not initialized and could thus
break OpenSSL certificate verification. E.g., test OPENSSL_SNI on some
platform succeeded with -g but failed with -O compiler option.
Thanks to valgrind for quickly finding the cause.
Porting:
Again porting Socat to AIX (7.1) - Fixed configure and compile issues:
Adapted include requirements for IPv6

View file

@ -226,7 +226,7 @@ static int
bool opt_ver = true; /* verify peer certificate */
char *opt_cert = NULL; /* file name of client certificate */
const char *opt_commonname = NULL; /* for checking peer certificate */
bool opt_no_sni;
bool opt_no_sni = false;
const char *opt_snihost = NULL; /* for SNI host */
int result;