Package: belle-sip / 1.6.3-5

authfix-missing-nonce-3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 7191ee1df84707107a7fe4f89d33ebe075a0cb35 Mon Sep 17 00:00:00 2001
From: Matthieu Tanon <matthieu.tanon@belledonne-communications.com>
Date: Fri, 21 Dec 2018 15:50:32 +0100
Subject: [PATCH] Final fix for nonce management in authorization header

---
 src/provider.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/provider.c b/src/provider.c
index e1e78b58..06ce2a94 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -1046,9 +1046,7 @@ static void authorization_context_fill_from_auth(authorization_context_t* auth_c
 		/*new nonce, resetting nounce_count*/
 		auth_context->nonce_count=0;
 	}
-	if (nonce) {
-		authorization_context_set_nonce(auth_context, nonce);
-	}
+	authorization_context_set_nonce(auth_context, nonce);
 	authorization_context_set_algorithm(auth_context,belle_sip_header_www_authenticate_get_algorithm(authenticate));
 	authorization_context_set_qop(auth_context,belle_sip_header_www_authenticate_get_qop_first(authenticate));
 	authorization_context_set_scheme(auth_context,belle_sip_header_www_authenticate_get_scheme(authenticate));