[sr-dev] git:master:89676b97: registrar: use sruid_next_safe()

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 19 09:04:00 CEST 2018


Module: kamailio
Branch: master
Commit: 89676b9774ecc0f72272b7027821a9531dc1a6ea
URL: https://github.com/kamailio/kamailio/commit/89676b9774ecc0f72272b7027821a9531dc1a6ea

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/89676b9774ecc0f72272b7027821a9531dc1a6ea.diff
Patch: https://github.com/kamailio/kamailio/commit/89676b9774ecc0f72272b7027821a9531dc1a6ea.patch

---

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);




More information about the sr-dev mailing list