- reported by GH #1325 (cherry picked from commit 991fe9b28e0e201309048f3b38a135037e40357a) (cherry picked from commit 49ab70feb630634977a11809d40b60a1344df352)
@@ -775,7 +775,7 @@ int add_rtpengine_socks(struct rtpp_set * rtpp_list, char * rtpproxy,
p1++;
}
- if (p1 != NULL && p1 != '\0') {
+ if (p1 != NULL && p1[0] != '\0') {
s1.s = p1;
s1.len = strlen(p1);
if (str2int(&s1, &port) < 0 || port > 0xFFFF) {