From 3146ec3f89133af2c9b0f0f9a6b2e0e3f133b77e Mon Sep 17 00:00:00 2001 From: Carsten Bock Date: Wed, 4 Nov 2015 14:16:34 +0100 Subject: [PATCH] ims_registrar_scscf: Fix loop in lookup request, could result in infinite loop --- modules/ims_registrar_scscf/lookup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ims_registrar_scscf/lookup.c b/modules/ims_registrar_scscf/lookup.c index 671e2110a2c..594bace31dd 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; } }