Now this is a convoluted function... but I agree with the assessment,
"new_link" is initialized to "false" and not changed until the code
reaches the first check (it's set to "true" in the first large if(),
and the removed-check is in that "else" branch) - and the other
check is also in an "if (new_link) .. else" branch, which then can
not be reached.
Out! (But this is cleanup, and Arne is busy rewriting the whole
function, so "no 2.7").
Your patch has been applied to the master branch.
commit f195766e8196bca6deccc1d157b4fb458aa4a399
Author: Razvan Cojocaru
Date: Mon Nov 23 11:37:36 2026 +0100
ssl: drop duplicate remote address check in tls_pre_decrypt()
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Lev Stipakov <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2240
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg41806.html
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel