[sr-dev] git:master:236b0b4b: auth_ephemeral: init the return code

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 8 16:51:22 CET 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-08T16:50:51+01:00

auth_ephemeral: init the return code

---

Modified: src/modules/auth_ephemeral/authorize.c

---

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

---

diff --git a/src/modules/auth_ephemeral/authorize.c b/src/modules/auth_ephemeral/authorize.c
index 8e4489947c..745f12d7ab 100644
--- a/src/modules/auth_ephemeral/authorize.c
+++ b/src/modules/auth_ephemeral/authorize.c
@@ -213,7 +213,7 @@ static inline int digest_authenticate(struct sip_msg *_m, str *_realm,
 				hdr_types_t _hftype, str *_method)
 {
 	struct hdr_field* h;
-	auth_cfg_result_t ret;
+	auth_cfg_result_t ret = AUTH_ERROR;
 	auth_result_t rauth;
 	struct secret *secret_struct;
 	str username;
@@ -548,4 +548,4 @@ int autheph_authenticate(struct sip_msg *_m, char *_username, char *_password)
 	}
 
 	return ki_autheph_authenticate(_m, &susername, &spassword);
-}
\ No newline at end of file
+}




More information about the sr-dev mailing list