mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 18:36:46 +00:00
fix reg var scope
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5666 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1d347c8af1
commit
075e80c368
@ -730,7 +730,8 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
|
|||||||
const char *a1_hash = NULL;
|
const char *a1_hash = NULL;
|
||||||
char *sql;
|
char *sql;
|
||||||
switch_xml_t domain, xml, user, param, xparams;
|
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;
|
username = realm = nonce = uri = qop = cnonce = nc = response = NULL;
|
||||||
|
|
||||||
if (authorization->au_params) {
|
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) {
|
if (!a1_hash) {
|
||||||
su_md5_t ctx;
|
su_md5_t ctx;
|
||||||
char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1];
|
|
||||||
char *input;
|
char *input;
|
||||||
|
|
||||||
input = switch_mprintf("%s:%s:%s", username, realm, passwd);
|
input = switch_mprintf("%s:%s:%s", username, realm, passwd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user