summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_pjsip_outbound_authenticator_digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_outbound_authenticator_digest.c b/res/res_pjsip_outbound_authenticator_digest.c
index 58eae5550..e7e77dbd5 100644
--- a/res/res_pjsip_outbound_authenticator_digest.c
+++ b/res/res_pjsip_outbound_authenticator_digest.c
@@ -72,7 +72,7 @@ static int set_outbound_authentication_credentials(pjsip_auth_clt_sess *auth_ses
for (i = 0; i < array->num; ++i) {
if (ast_strlen_zero(auths[i]->realm)) {
- pj_cstr(&auth_creds[i].realm, auth_hdr->challenge.common.realm.ptr);
+ auth_creds[i].realm = auth_hdr->challenge.common.realm;
} else {
pj_cstr(&auth_creds[i].realm, auths[i]->realm);
}