Module: kamailio
Branch: master
Commit: b2c3344fb2ed55ef9da5594046b7eb92bc479517
URL: 
https://github.com/kamailio/kamailio/commit/b2c3344fb2ed55ef9da5594046b7eb92bc479517

Author: Henning Westerholt <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2019-09-20T10:16:32+02:00

core: remove unnecessary negative check for unsigned int value (code scan 
warning)

---

Modified: src/core/flags.c

---

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

---

diff --git a/src/core/flags.c b/src/core/flags.c
index 589421ce7b..551eefe2ee 100644
--- a/src/core/flags.c
+++ b/src/core/flags.c
@@ -66,10 +66,6 @@ int flag_in_range( flag_t flag ) {
                LM_ERR("message flag %d too high; MAX=%d\n", flag, MAX_FLAG );
                return 0;
        }
-       if ((int)flag<0) {
-               LM_ERR("message flag (%d) must be in range 0..%d\n", flag, 
MAX_FLAG );
-               return 0;
-       }
        return 1;
 }
 


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

Reply via email to