[sr-dev] git:master:2b127549: uac: reset credentials structure for uac_req_send() authentication

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 14 12:26:09 CET 2019


Module: kamailio
Branch: master
Commit: 2b12754920704f49cd227c518e130cef4d76ea7d
URL: https://github.com/kamailio/kamailio/commit/2b12754920704f49cd227c518e130cef4d76ea7d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-11-14T12:25:09+01:00

uac: reset credentials structure for uac_req_send() authentication

---

Modified: src/modules/uac/uac_send.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2b12754920704f49cd227c518e130cef4d76ea7d.diff
Patch: https://github.com/kamailio/kamailio/commit/2b12754920704f49cd227c518e130cef4d76ea7d.patch

---

diff --git a/src/modules/uac/uac_send.c b/src/modules/uac/uac_send.c
index 0a3580b60a..5795d45309 100644
--- a/src/modules/uac/uac_send.c
+++ b/src/modules/uac/uac_send.c
@@ -739,10 +739,10 @@ void uac_send_tm_callback(struct cell *t, int type, struct tmcb_params *ps)
 		goto error;
 	}
 
+	memset(&cred, 0, sizeof(struct uac_credential));
 	cred.realm  = auth.realm;
 	cred.user   = tp->s_auser;
 	cred.passwd = tp->s_apasswd;
-	cred.next   = NULL;
 
 	do_uac_auth(&tp->s_method, &tp->s_ruri, &cred, &auth, response);
 	new_auth_hdr=build_authorization_hdr(ps->code, &tp->s_ruri, &cred,




More information about the sr-dev mailing list