Skip to content

Commit

Permalink
nathelper: fix test condition for updateing IP for fix_nated_sdp()
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiusas committed Feb 5, 2018
1 parent 61d1a7c commit 3c39167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nathelper/nathelper.c
Expand Up @@ -989,7 +989,7 @@ alter_mediaip(struct sip_msg *msg, str *body, str *oldip, int oldpf,
str omip, nip, oip;

/* check that updating mediaip is really necessary */
if (oldpf == newpf && isnulladdr(oldip, oldpf) && !forcenulladdr)
if (oldpf == newpf || (isnulladdr(oldip, oldpf) && !forcenulladdr))
return 0;
if (newip->len == oldip->len &&
memcmp(newip->s, oldip->s, newip->len) == 0)
Expand Down

0 comments on commit 3c39167

Please sign in to comment.