提交 49a13096 authored 作者: Michael Jerris's avatar Michael Jerris

code before declaration

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3155 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 71043450
......@@ -3810,6 +3810,11 @@ static void sip_r_register(int status,
nua_handle_destroy(nh);
}
} else if (status == 401 || status == 407) {
char const *realm = (char const *) *authenticate->au_params;
char const *scheme = (char const *) authenticate->au_scheme;
char authentication[256] = "";
int ss_state;
if (sip->sip_www_authenticate) {
authenticate = sip->sip_www_authenticate;
......@@ -3820,10 +3825,6 @@ static void sip_r_register(int status,
return;
}
char const *realm = (char const *) *authenticate->au_params;
char const *scheme = (char const *) authenticate->au_scheme;
char authentication[256] = "";
int ss_state;
snprintf(authentication, sizeof(authentication), "%s:%s:%s:%s", scheme, strstr(realm, "=") + 1,
oreg->register_username,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论