[sr-dev] git:master:3146ec3f: ims_registrar_scscf: Fix loop in lookup request, could result in infinite loop
Carsten Bock
carsten at ng-voice.com
Wed Nov 4 14:16:45 CET 2015
Module: kamailio
Branch: master
Commit: 3146ec3f89133af2c9b0f0f9a6b2e0e3f133b77e
URL: https://github.com/kamailio/kamailio/commit/3146ec3f89133af2c9b0f0f9a6b2e0e3f133b77e
Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at 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/3146ec3f89133af2c9b0f0f9a6b2e0e3f133b77e.diff
Patch: https://github.com/kamailio/kamailio/commit/3146ec3f89133af2c9b0f0f9a6b2e0e3f133b77e.patch
---
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;
}
}
More information about the sr-dev
mailing list