Skip to content

Commit

Permalink
rtpproxy: allow 0 as value for ice candidate avp
Browse files Browse the repository at this point in the history
- reported by GH #1003
  • Loading branch information
miconda committed Feb 22, 2017
1 parent 6ba9900 commit 71b9cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rtpproxy/rtpproxy.c
Expand Up @@ -2326,7 +2326,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer,
&ice_candidate_priority_val, 0)
== NULL) {
ice_candidate_priority_val.n = 2;
} else if ((ice_candidate_priority_val.n < 1) ||
} else if ((ice_candidate_priority_val.n < 0) ||
(ice_candidate_priority_val.n > 2)) {
LM_ERR("invalid ice candidate priority value %d\n",
ice_candidate_priority_val.n);
Expand Down

0 comments on commit 71b9cb3

Please sign in to comment.