Module: kamailio
Branch: 5.8
Commit: 3c74737ac0af03d8a900824d740383f3197dc8b0
URL: 
https://github.com/kamailio/kamailio/commit/3c74737ac0af03d8a900824d740383f3197dc8b0

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-12-01T13:47:30+01:00

auth: init variable

(cherry picked from commit 6d99a650cb79ec5551bb1af29132be9e9c7c555b)
(cherry picked from commit 317ed98d592de0230d84730652b7be5774046c12)

---

Modified: src/modules/auth/auth_mod.c

---

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

---

diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index 9d4101d7af4..5a624287957 100644
--- a/src/modules/auth/auth_mod.c
+++ b/src/modules/auth/auth_mod.c
@@ -495,7 +495,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