提交 7041d7f4 authored 作者: Anthony Minessale's avatar Anthony Minessale

remove unused code

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15270 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b7fdecc2
...@@ -1937,6 +1937,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, ...@@ -1937,6 +1937,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
ret = AUTH_FORBIDDEN; ret = AUTH_FORBIDDEN;
} }
switch_safe_free(input2); switch_safe_free(input2);
skip_auth: skip_auth:
...@@ -2082,8 +2083,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, ...@@ -2082,8 +2083,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
char *sql; char *sql;
x = get_nc(nc, sip); x = get_nc(nc, sip);
input2 = switch_mprintf("%s:%s:%s:%s:%s:%s", a1_hash, nonce, nc, cnonce, qop, uridigest);
sql = switch_mprintf("update sip_authentication set expires='%ld',last_nc=%lu where nonce='%s'", sql = switch_mprintf("update sip_authentication set expires='%ld',last_nc=%lu where nonce='%s'",
switch_epoch_time_now(NULL) + (profile->nonce_ttl ? profile->nonce_ttl : exptime + 10), x, nonce); switch_epoch_time_now(NULL) + (profile->nonce_ttl ? profile->nonce_ttl : exptime + 10), x, nonce);
...@@ -2099,7 +2098,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, ...@@ -2099,7 +2098,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
} }
switch_safe_free(input); switch_safe_free(input);
switch_safe_free(input2);
switch_safe_free(username); switch_safe_free(username);
switch_safe_free(realm); switch_safe_free(realm);
switch_safe_free(nonce); switch_safe_free(nonce);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论