Skip to content

Commit

Permalink
phonenum: proper access to the str type param resid
Browse files Browse the repository at this point in the history
(cherry picked from commit 56f8653)
  • Loading branch information
miconda committed Sep 24, 2019
1 parent e1197ad commit becc6bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/phonenum/phonenum_mod.c
Expand Up @@ -112,8 +112,7 @@ static int phonenum_resid_param(modparam_t type, void* val)
{
str rname;

rname.s = (char*)val;
rname.len = strlen(rname.s);
rname = *((str*)val);
if(sr_phonenum_add_resid(&rname) < 0) {
LM_ERR("failed to register result container with id: %.*s\n",
rname.len, rname.s);
Expand Down

0 comments on commit becc6bc

Please sign in to comment.