Module: kamailio
Branch: master
Commit: 89676b9774ecc0f72272b7027821a9531dc1a6ea
URL:
https://github.com/kamailio/kamailio/commit/89676b9774ecc0f72272b7027821a95…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-19T08:33:14+02:00
registrar: use sruid_next_safe()
---
Modified: src/modules/registrar/save.c
---
Diff:
https://github.com/kamailio/kamailio/commit/89676b9774ecc0f72272b7027821a95…
Patch:
https://github.com/kamailio/kamailio/commit/89676b9774ecc0f72272b7027821a95…
---
diff --git a/src/modules/registrar/save.c b/src/modules/registrar/save.c
index 1432efed64..2b39444a29 100644
--- a/src/modules/registrar/save.c
+++ b/src/modules/registrar/save.c
@@ -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);