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/+/2240?usp=email
to review the following change.
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]>
---
M src/openvpn/ssl.c
1 file changed, 1 insertion(+), 8 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/40/2240/1
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index d5ae13d..e4a39b2 100644
--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -4003,7 +4003,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));
@@ -4105,13 +4105,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: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74eca236465190ab55db289b98e432757c61a4a3
Gerrit-Change-Number: 2240
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[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