浏览代码

rtpproxy: allow 0 as value for ice candidate avp

- reported by GH #1003
Daniel-Constantin Mierla 8 年之前
父节点
当前提交
71b9cb347e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/rtpproxy/rtpproxy.c

+ 1 - 1
src/modules/rtpproxy/rtpproxy.c

@@ -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);