Module: kamailio
Branch: master
Commit: 3146ec3f89133af2c9b0f0f9a6b2e0e3f133b77e
URL:
https://github.com/kamailio/kamailio/commit/3146ec3f89133af2c9b0f0f9a6b2e0e…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2015-11-04T14:16:34+01:00
ims_registrar_scscf: Fix loop in lookup request, could result in infinite loop
---
Modified: modules/ims_registrar_scscf/lookup.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3146ec3f89133af2c9b0f0f9a6b2e0e…
Patch:
https://github.com/kamailio/kamailio/commit/3146ec3f89133af2c9b0f0f9a6b2e0e…
---
diff --git a/modules/ims_registrar_scscf/lookup.c b/modules/ims_registrar_scscf/lookup.c
index 671e211..594bace 100644
--- a/modules/ims_registrar_scscf/lookup.c
+++ b/modules/ims_registrar_scscf/lookup.c
@@ -171,6 +171,7 @@ int lookup(struct sip_msg* _m, udomain_t* _d) {
if (ptr->path.s && ptr->path.len
&& get_path_dst_uri(&ptr->path, &path_dst) < 0)
{
LM_ERR("failed to get dst_uri for Path\n");
+ i++;
continue;
}
@@ -180,6 +181,7 @@ int lookup(struct sip_msg* _m, udomain_t* _d) {
&ptr->path, ptr->q, ptr->cflags, ptr->sock) == -1) {
LM_ERR("failed to append a branch\n");
/* Also give a chance to the next branches*/
+ i++;
continue;
}
}