[Asterisk-cvs] asterisk/channels chan_sip.c,1.745,1.746

markster at lists.digium.com markster at lists.digium.com
Mon May 30 09:23:48 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv12853/channels

Modified Files:
	chan_sip.c 
Log Message:
Fix reply digest selection of size (bug #4409)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.745
retrieving revision 1.746
diff -u -d -r1.745 -r1.746
--- chan_sip.c	30 May 2005 13:23:10 -0000	1.745
+++ chan_sip.c	30 May 2005 13:27:12 -0000	1.746
@@ -7784,11 +7784,13 @@
 
 	/* Save auth data for following registrations */
 	if (p->registry) {
-		ast_copy_string(p->registry->realm, realm, sizeof(p->realm));
-		ast_copy_string(p->registry->nonce, nonce, sizeof(p->nonce));
-		ast_copy_string(p->registry->domain, domain, sizeof(p->domain));
-		ast_copy_string(p->registry->opaque, opaque, sizeof(p->opaque));
-		ast_copy_string(p->registry->qop, qop, sizeof(p->qop));
+		struct sip_registry *r = p->registry;
+
+		ast_copy_string(r->realm, p->realm, sizeof(r->realm));
+		ast_copy_string(r->nonce, p->nonce, sizeof(r->nonce));
+		ast_copy_string(r->domain, p->domain, sizeof(r->domain));
+		ast_copy_string(r->opaque, p->opaque, sizeof(r->opaque));
+		ast_copy_string(r->qop, p->qop, sizeof(r->qop));
 	}
 	build_reply_digest(p, sipmethod, digest, digest_len); 
 	return 0;




More information about the svn-commits mailing list