[Asterisk-cvs] asterisk/channels chan_iax2.c,1.188.2.19,1.188.2.20

russell at lists.digium.com russell at lists.digium.com
Tue May 31 08:54:51 CDT 2005


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

Modified Files:
      Tag: v1-0
	chan_iax2.c 
Log Message:
fix a sizeof bug (bug #4264)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.188.2.19
retrieving revision 1.188.2.20
diff -u -d -r1.188.2.19 -r1.188.2.20
--- chan_iax2.c	16 May 2005 03:04:59 -0000	1.188.2.19
+++ chan_iax2.c	31 May 2005 12:58:08 -0000	1.188.2.20
@@ -2369,7 +2369,7 @@
 	if (secret) {
 		if (secret[0] == '[') {
 			/* This is an RSA key, not a normal secret */
-			strncpy(iaxs[callno]->outkey, secret + 1, sizeof(iaxs[callno]->secret)-1);
+			strncpy(iaxs[callno]->outkey, secret + 1, sizeof(iaxs[callno]->outkey)-1);
 			if (!ast_strlen_zero(iaxs[callno]->outkey)) {
 				iaxs[callno]->outkey[strlen(iaxs[callno]->outkey) - 1] = '\0';
 			}




More information about the svn-commits mailing list