Skip to content

Commit

Permalink
Proper checking of callid length
Browse files Browse the repository at this point in the history
Reported by Walter Doekes
  • Loading branch information
vladpaiu committed Jun 10, 2014
1 parent 7864fd2 commit 1dcd88e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/dialog/dlg_tophiding.c
Expand Up @@ -679,7 +679,8 @@ int dlg_th_needs_decoding(struct sip_msg *msg)
return 0;
}

if (memcmp(msg->callid->body.s,topo_hiding_prefix.s,
if (msg->callid->body.len > topo_hiding_prefix.len &&
memcmp(msg->callid->body.s,topo_hiding_prefix.s,
topo_hiding_prefix.len) == 0)
return 1;

Expand Down

0 comments on commit 1dcd88e

Please sign in to comment.