2
0
Эх сурвалжийг харах

ims_registrar_scscf: Fix loop in lookup request, could result in infinite loop

Carsten Bock 10 жил өмнө
parent
commit
3146ec3f89

+ 2 - 0
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
             if (ptr->path.s && ptr->path.len
                     && get_path_dst_uri(&ptr->path, &path_dst) < 0) {
                     && get_path_dst_uri(&ptr->path, &path_dst) < 0) {
                 LM_ERR("failed to get dst_uri for Path\n");
                 LM_ERR("failed to get dst_uri for Path\n");
+		i++;
                 continue;
                 continue;
             }
             }
 
 
@@ -180,6 +181,7 @@ int lookup(struct sip_msg* _m, udomain_t* _d) {
                     &ptr->path, ptr->q, ptr->cflags, ptr->sock) == -1) {
                     &ptr->path, ptr->q, ptr->cflags, ptr->sock) == -1) {
                 LM_ERR("failed to append a branch\n");
                 LM_ERR("failed to append a branch\n");
                 /* Also give a chance to the next branches*/
                 /* Also give a chance to the next branches*/
+		i++;
                 continue;
                 continue;
             }
             }
         }
         }