Module: kamailio Branch: 4.3 Commit: 3fc2d2ceafa33153e9c046f192dc41baae14f3ec URL: https://github.com/kamailio/kamailio/commit/3fc2d2ceafa33153e9c046f192dc41ba...
Author: Charles Chance charles.chance@sipcentric.com Committer: Charles Chance charles.chance@sipcentric.com Date: 2015-09-10T12:50:04+01:00
dmq_usrloc: check existence of usrloc domain before continuing.
---
Modified: modules/dmq_usrloc/usrloc_sync.c
---
Diff: https://github.com/kamailio/kamailio/commit/3fc2d2ceafa33153e9c046f192dc41ba... Patch: https://github.com/kamailio/kamailio/commit/3fc2d2ceafa33153e9c046f192dc41ba...
---
diff --git a/modules/dmq_usrloc/usrloc_sync.c b/modules/dmq_usrloc/usrloc_sync.c index e4a9ed7..40e89d3 100644 --- a/modules/dmq_usrloc/usrloc_sync.c +++ b/modules/dmq_usrloc/usrloc_sync.c @@ -101,7 +101,10 @@ static int delete_contact(str aor, ucontact_info_t* ci) urecord_t* r; ucontact_t* c;
- dmq_ul.get_udomain("location", &_d); + if (dmq_ul.get_udomain("location", &_d) < 0) { + LM_ERR("Failed to get domain\n"); + return -1; + }
if (dmq_ul.get_urecord_by_ruid(_d, dmq_ul.get_aorhash(&aor), &ci->ruid, &r, &c) != 0) {