Module: kamailio
Branch: 5.4
Commit: 523085f0a3c0953faa47bed7113507eb3c8b4f2c
URL: 
https://github.com/kamailio/kamailio/commit/523085f0a3c0953faa47bed7113507eb3c8b4f2c

Author: Boris Korzun <kor...@miatel.ru>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2021-09-24T18:06:32+02:00

pike: fixed regression
- removed unnecessary NULL-return from mark_node() after previous commit

(cherry picked from commit 79fbb7c6df5d4c742b1283b752c2df0f51e77f09)
(cherry picked from commit b62a773c8f0c1daf1aa3d1cd57845d414eea5bac)

---

Modified: src/modules/pike/ip_tree.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/523085f0a3c0953faa47bed7113507eb3c8b4f2c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/523085f0a3c0953faa47bed7113507eb3c8b4f2c.patch

---

diff --git a/src/modules/pike/ip_tree.c b/src/modules/pike/ip_tree.c
index c0324c0476..1fe9227a5f 100644
--- a/src/modules/pike/ip_tree.c
+++ b/src/modules/pike/ip_tree.c
@@ -301,10 +301,6 @@ pike_ip_node_t* mark_node(unsigned char *ip,int ip_len,
                }
        }
 
-       if(node==NULL) {
-               return NULL;
-       }
-
        LM_DBG("only first %d were matched!\n",byte_pos);
        *flag = 0;
        *father = 0;


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to