Commit 3a6a6d67 authored by Matthieu Tanon's avatar Matthieu Tanon

Fix nonce set in authorization header

parent 7dd8397f
......@@ -1045,6 +1045,8 @@ static void authorization_context_fill_from_auth(authorization_context_t* auth_c
if (auth_context->nonce && nonce && strcmp(nonce, auth_context->nonce) != 0) {
/*new nonce, resetting nounce_count*/
auth_context->nonce_count=0;
}
if (nonce) {
authorization_context_set_nonce(auth_context, nonce);
}
authorization_context_set_algorithm(auth_context,belle_sip_header_www_authenticate_get_algorithm(authenticate));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment