瀏覽代碼

auth_ephemeral: init the return code

Daniel-Constantin Mierla 7 年之前
父節點
當前提交
236b0b4bca
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/auth_ephemeral/authorize.c

+ 2 - 2
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);
-}
+}