Skip to content

Commit

Permalink
rtpproxy: check length of he
Browse files Browse the repository at this point in the history
Fixes Coverity CID 150661
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent 21ec547 commit bba27d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rtpproxy/timeout_process.c
Expand Up @@ -480,7 +480,7 @@ int compare_rtpp(struct rtpp_node *r_node, struct rtpp_notify_node *n_node)
LM_ERR("cannot resolve hostname %s\n", r_node->rn_address);
return 0;
}
if (rtpp_server->h_length > BUF_LEN) {
if (rtpp_server->h_length > BUF_LEN || rtpp_server->h_length < 0) {
LM_ERR("length too big for rtpproxy server address: %d\n",
rtpp_server->h_length);
return 0;
Expand Down

0 comments on commit bba27d1

Please sign in to comment.