Skip to content

Commit

Permalink
uac: check new callid value for setting $uac_req() field
Browse files Browse the repository at this point in the history
- GH #3135
  • Loading branch information
miconda committed Jun 7, 2022
1 parent 1225d7f commit 0eeb4cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/uac/uac_send.c
Expand Up @@ -424,6 +424,11 @@ int pv_set_uac_req(struct sip_msg* msg, pv_param_t *param,
LM_ERR("Invalid value type\n");
return -1;
}
if(tval->rs.len>=128)
{
LM_ERR("Value size too big\n");
return -1;
}
memcpy(_uac_req.s_callid.s, tval->rs.s, tval->rs.len);
_uac_req.s_callid.s[tval->rs.len] = '\0';
_uac_req.s_callid.len = tval->rs.len;
Expand Down

0 comments on commit 0eeb4cc

Please sign in to comment.