[Asterisk-cvs] asterisk/channels chan_sip.c,1.403,1.404

markster at lists.digium.com markster at lists.digium.com
Sat May 29 19:25:00 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Initialize secrets properly (bug #1748)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.403
retrieving revision 1.404
diff -u -d -r1.403 -r1.404
--- chan_sip.c	28 May 2004 15:47:57 -0000	1.403
+++ chan_sip.c	29 May 2004 23:40:22 -0000	1.404
@@ -4837,6 +4837,8 @@
 				ast_log(LOG_DEBUG, "Setting NAT on VRTP to %d\n", p->nat);
 				ast_rtp_setnat(p->vrtp, p->nat);
 			}
+			strcpy(p->peersecret, peer->secret);
+			strcpy(p->peermd5secret, peer->md5secret);
 			if (peer->insecure > 1) {
 				/* Pretend there is no required authentication if insecure is "very" */
 				strcpy(p->peersecret, "");




More information about the svn-commits mailing list