Gert Doering has uploaded a new patch set (#2) to the change originally created 
by Răzvan Cojocaru. ( https://gerrit.openvpn.net/c/openvpn/+/2240?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by Lev Stipakov


Change subject: ssl: drop duplicate remote address check in tls_pre_decrypt()
......................................................................

ssl: drop duplicate remote address check in tls_pre_decrypt()

The existing-session branch already rejects a packet whose source
doesn't match ks->remote_addr, and key_state_soft_reset() keeps that
address, so the later check never fails. new_link is always false in
that branch.

Change-Id: I74eca236465190ab55db289b98e432757c61a4a3
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]>
---
M src/openvpn/ssl.c
1 file changed, 1 insertion(+), 8 deletions(-)


  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/40/2240/2

diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index eb6b86f..ca5958f 100644
--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -4002,7 +4002,7 @@
         /*
          * Verify remote IP address
          */
-        if (!new_link && !link_socket_actual_match(&ks->remote_addr, from))
+        if (!link_socket_actual_match(&ks->remote_addr, from))
         {
             msg(D_TLS_ERRORS, "TLS Error: Received control packet from 
unexpected IP addr: %s",
                 print_link_socket_actual(from, &gc));
@@ -4104,13 +4104,6 @@
         ks->remote_addr = *from;
         ++multi->n_sessions;
     }
-    else if (!link_socket_actual_match(&ks->remote_addr, from))
-    {
-        msg(D_TLS_ERRORS,
-            "TLS Error: Existing session control channel packet from unknown 
IP address: %s",
-            print_link_socket_actual(from, &gc));
-        goto error;
-    }

     /*
      * Should we do a retransmit of all unacknowledged packets in

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2240?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74eca236465190ab55db289b98e432757c61a4a3
Gerrit-Change-Number: 2240
Gerrit-PatchSet: 2
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Lev Stipakov <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to