Skip to content
Snippets Groups Projects
Commit e45e8466 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Peers with distinct source ports don't match, regardless of transport."

parents 46b35fa1 b2c4e866
No related branches found
No related tags found
No related merge requests found
...@@ -34451,10 +34451,9 @@ static int peer_ipcmp_cb_full(void *obj, void *arg, void *data, int flags) ...@@ -34451,10 +34451,9 @@ static int peer_ipcmp_cb_full(void *obj, void *arg, void *data, int flags)
} }
   
/* We matched the IP, check to see if we need to match by port as well. */ /* We matched the IP, check to see if we need to match by port as well. */
if ((peer->transports & peer2->transports) & (AST_TRANSPORT_TLS | AST_TRANSPORT_TCP)) { if (((peer->transports & peer2->transports) &
/* peer matching on port is not possible with TCP/TLS */ (AST_TRANSPORT_UDP | AST_TRANSPORT_WS | AST_TRANSPORT_WSS)) &&
return CMP_MATCH | CMP_STOP; ast_test_flag(&peer2->flags[0], SIP_INSECURE_PORT)) {
} else if (ast_test_flag(&peer2->flags[0], SIP_INSECURE_PORT)) {
/* We are allowing match without port for peers configured that /* We are allowing match without port for peers configured that
* way in this pass through the peers. */ * way in this pass through the peers. */
return ast_test_flag(&peer->flags[0], SIP_INSECURE_PORT) ? return ast_test_flag(&peer->flags[0], SIP_INSECURE_PORT) ?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment