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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2023-12-27T09:24:33+01:00

tm: remove redundant check in if condition

- else branch is already for >= 200

---

Modified: src/modules/tm/dlg.c

---

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

---

diff --git a/src/modules/tm/dlg.c b/src/modules/tm/dlg.c
index 29b8d50769f..96483259c8c 100644
--- a/src/modules/tm/dlg.c
+++ b/src/modules/tm/dlg.c
@@ -712,8 +712,9 @@ static inline int dlg_early_resp_uac(dlg_t *_d, struct 
sip_msg *_m)
 
        if(code < 200) {
                /* We are in early state already, do nothing */
-       } else if((code >= 200) && (code <= 299)) {
-               /* Warning - we can handle here response for non-initial 
request (for
+       } else if(code <= 299) {
+               /* (200-299)
+                * Warning - we can handle here response for non-initial 
request (for
                 * example UPDATE within early INVITE/BYE dialog) and move into
                 * confirmed state may be error! But this depends on dialog 
type... */
 

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to