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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-11-23T11:19:06+01:00

auth: init variable

---

Modified: src/modules/auth/auth_mod.c

---

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

---

diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index 01e8237a72f..9f8055a98b1 100644
--- a/src/modules/auth/auth_mod.c
+++ b/src/modules/auth/auth_mod.c
@@ -584,7 +584,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