Skip to content

Commit

Permalink
sipt: use static buffer to avoid pkg leak inside sipt_get_redirection…
Browse files Browse the repository at this point in the history
…_number()
  • Loading branch information
miconda committed Jun 18, 2018
1 parent 5f91017 commit 606a8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sipt/sipt.c
Expand Up @@ -337,7 +337,7 @@ static int sipt_get_redirection_number_nai(struct sip_msg *msg, pv_param_t *para

static int sipt_get_redirection_number(struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
{
char *sb_s_buf = pkg_malloc(sizeof(char) * (26));
static char sb_s_buf[26];
str body;
body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);

Expand Down

0 comments on commit 606a8d6

Please sign in to comment.