提交 075e80c3 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix reg var scope

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5666 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1d347c8a
......@@ -730,7 +730,8 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
const char *a1_hash = NULL;
char *sql;
switch_xml_t domain, xml, user, param, xparams;
char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1] = "";
username = realm = nonce = uri = qop = cnonce = nc = response = NULL;
if (authorization->au_params) {
......@@ -847,7 +848,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
if (!a1_hash) {
su_md5_t ctx;
char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1];
char *input;
input = switch_mprintf("%s:%s:%s", username, realm, passwd);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论