Skip to content

Commit

Permalink
registrar: use sruid_next_safe()
Browse files Browse the repository at this point in the history
(cherry picked from commit 89676b9)
(cherry picked from commit 592438a)
  • Loading branch information
miconda committed Apr 3, 2019
1 parent 0e05a98 commit d2ae034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/registrar/save.c
Expand Up @@ -404,7 +404,7 @@ static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t* _c,
goto error;
}
}
if(sruid_next(&_reg_sruid)<0)
if(sruid_next_safe(&_reg_sruid)<0)
goto error;
ci.ruid = _reg_sruid.uid;
LM_DBG("generated ruid is: %.*s\n", ci.ruid.len, ci.ruid.s);
Expand Down

0 comments on commit d2ae034

Please sign in to comment.