Skip to content

Commit

Permalink
nathelper: use dedicated function for testing via address against sou…
Browse files Browse the repository at this point in the history
…rce ip

- reported by Igor Potjevlesch
- previous used functions was checking the presence of rport and
  received parameters, ending in a wrong result for nat testing

(cherry picked from commit 0b10377)
  • Loading branch information
miconda committed Dec 1, 2014
1 parent 7ebf861 commit a2832bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nathelper/nathelper.c
Expand Up @@ -1556,7 +1556,7 @@ nat_uac_test_f(struct sip_msg* msg, char* str1, char* str2)
* test if source address of signaling is different from
* address advertised in Via
*/
if ((tests & NAT_UAC_TEST_RCVD) && received_test(msg))
if ((tests & NAT_UAC_TEST_RCVD) && received_via_test(msg))
return 1;
/*
* test for occurrences of RFC1918 addresses in Contact
Expand Down

0 comments on commit a2832bf

Please sign in to comment.