From 19418018c089c745932800f6c7c18703122a1941 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 31 Dec 2015 04:03:37 +0000 Subject: Re #1882 (misc): Use cred->cnonce instead of cnonce when calling pjsip_auth_create_digest(), since cnonce can be null Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5227 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip/sip_auth_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pjsip/src/pjsip/sip_auth_client.c b/pjsip/src/pjsip/sip_auth_client.c index 55f5e894..3b2ee372 100644 --- a/pjsip/src/pjsip/sip_auth_client.c +++ b/pjsip/src/pjsip/sip_auth_client.c @@ -339,7 +339,7 @@ static pj_status_t respond_digest( pj_pool_t *pool, } else { pjsip_auth_create_digest( &cred->response, &cred->nonce, - &cred->nc, cnonce, &pjsip_AUTH_STR, + &cred->nc, &cred->cnonce, &pjsip_AUTH_STR, uri, &chal->realm, cred_info, method ); } -- cgit v1.2.3