Skip to content

Commit

Permalink
rtpengine: proper check for empty string inside add_rtpengine_socks()
Browse files Browse the repository at this point in the history
- reported by GH #1325
  • Loading branch information
miconda committed Nov 25, 2017
1 parent 6e680c7 commit 991fe9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rtpengine/rtpengine.c
Expand Up @@ -906,7 +906,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) {
Expand Down

0 comments on commit 991fe9b

Please sign in to comment.