Module: kamailio
Branch: 6.0
Commit: 317ed98d592de0230d84730652b7be5774046c12
URL: 
https://github.com/kamailio/kamailio/commit/317ed98d592de0230d84730652b7be5774046c12

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-11-27T17:36:43+01:00

auth: init variable

(cherry picked from commit 6d99a650cb79ec5551bb1af29132be9e9c7c555b)

---

Modified: src/modules/auth/auth_mod.c

---

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

---

diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index 7bedd43ee5a..b1da97aea94 100644
--- a/src/modules/auth/auth_mod.c
+++ b/src/modules/auth/auth_mod.c
@@ -559,7 +559,7 @@ static int auth_check_hdr_md5_noupdate(
 int pv_authenticate(struct sip_msg *msg, str *realm, str *passwd, int flags,
                int hftype, hdr_field_t **hdr, str *method)
 {
-       struct hdr_field *h;
+       struct hdr_field *h = NULL;
        auth_body_t *cred;
        auth_cfg_result_t ret;
        auth_result_t rauth;

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to