Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2396?usp=email
to review the following change.
Change subject: Backport extra_certs_file bugfix + MS bool workaround to 2.6
......................................................................
Backport extra_certs_file bugfix + MS bool workaround to 2.6
2.6 currently does not build in GHA anymore because (newly added)
microsoft warnings break -Werror builds.
Backport commit a1cd0cf8a97b (which is a real bugfix for
check_file_access_inline(options->extra_certs_file_inline...)
and commit d8e22c519190 (which is correct code that triggers new
boolean related warnings).
Both fixes originally written by Razvan Cojocaru.
Change-Id: I565d5c69e4082c8fb678597313708349a0abb7f6
Signed-off-by: Gert Doering <[email protected]>
---
M src/openvpn/options.c
M src/openvpn/ssl.c
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/96/2396/1
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 56041bb..18efe41 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -4087,7 +4087,7 @@
errs |= check_file_access_inline(options->cert_file_inline, CHKACC_FILE,
options->cert_file, R_OK, "--cert");
- errs |= check_file_access_inline(options->extra_certs_file, CHKACC_FILE,
+ errs |= check_file_access_inline(options->extra_certs_file_inline,
CHKACC_FILE,
options->extra_certs_file, R_OK,
"--extra-certs");
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index 2f48af4..5402463 100644
--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -2455,7 +2455,7 @@
free(multi->remote_ciphername);
multi->remote_ciphername =
options_string_extract_option(options, "cipher", NULL);
- multi->remote_usescomp = strstr(options, ",comp-lzo,");
+ multi->remote_usescomp = (strstr(options, ",comp-lzo,") != NULL);
/* In OCC we send '[null-cipher]' instead 'none' */
if (multi->remote_ciphername
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2396?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I565d5c69e4082c8fb678597313708349a0abb7f6
Gerrit-Change-Number: 2396
Gerrit-PatchSet: 1
Gerrit-Owner: Gert Doering <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel