Module: kamailio
Branch: master
Commit: eeb3c160ecddd65aa76997ed98e9b1be8e08ab20
URL:
https://github.com/kamailio/kamailio/commit/eeb3c160ecddd65aa76997ed98e9b1b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-10-26T21:47:46+01:00
dmq_usrloc: access usrloc result record after handling return code
- reported in GH#373
---
Modified: modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/eeb3c160ecddd65aa76997ed98e9b1b…
Patch:
https://github.com/kamailio/kamailio/commit/eeb3c160ecddd65aa76997ed98e9b1b…
---
diff --git a/modules/dmq_usrloc/usrloc_sync.c b/modules/dmq_usrloc/usrloc_sync.c
index 4d53d0c..2246c36 100644
--- a/modules/dmq_usrloc/usrloc_sync.c
+++ b/modules/dmq_usrloc/usrloc_sync.c
@@ -200,11 +200,11 @@ void usrloc_get_all_ucontact(dmq_node_t* node)
r = 0;
ptr = 0;
res = dmq_ul.get_urecord_by_ruid(_d, aorhash, &ruid, &r, &ptr);
- aor = r->aor;
if (res < 0) {
- LM_DBG("'%.*s' Not found in usrloc\n", aor.len, ZSW(aor.s));
+ LM_DBG("'%.*s' Not found in usrloc\n", ruid.len, ZSW(ruid.s));
continue;
}
+ aor = r->aor;
LM_DBG("- AoR: %.*s AoRhash=%d Flags=%d\n", aor.len, aor.s, aorhash,
flags);
while (ptr) {