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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-02-16T10:23:18+01:00

registrar: remove unnecessary condition

---

Modified: src/modules/registrar/save.c

---

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

---

diff --git a/src/modules/registrar/save.c b/src/modules/registrar/save.c
index 1709868f8e6..5ec02909ba6 100644
--- a/src/modules/registrar/save.c
+++ b/src/modules/registrar/save.c
@@ -955,8 +955,6 @@ int save(struct sip_msg *_m, udomain_t *_d, int _cflags, 
str *_uri)
                        return -1;
                }
        }
-       if(u == NULL)
-               goto error;
 
        rerrno = R_FINE;
        ret = 1;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to