From: Peter Müller Date: Mon, 17 Jun 2019 14:08:00 +0000 (+0000) Subject: vpnmain.cgi: Fix writing ESP settings for PFS ciphers X-Git-Tag: v2.23-core133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dd16f4047789c69a3234eec0fdb963509f3fedd;p=ipfire-2.x.git vpnmain.cgi: Fix writing ESP settings for PFS ciphers The changes introduced due to #12091 caused IPsec ESP to be invalid if PFS ciphers were selected. Code has to read "!$pfs" instead of just "$pfs", as it should trigger for ciphers _without_ Perfect Forward Secrecy. Fixes #12099 Signed-off-by: Peter Müller Cc: Michael Tremer Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index fbc2749191..750b69b1dc 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -3338,7 +3338,7 @@ sub make_algos($$$$$) { push(@algo, $int); } - if ($pfs || $grp eq "none") { + if (!$pfs || $grp eq "none") { # noop } elsif ($grp =~ m/^e(.*)$/) { push(@algo, "ecp$1");