[Asterisk-cvs] asterisk/channels chan_sip.c,1.555,1.556

markster at lists.digium.com markster at lists.digium.com
Mon Nov 8 21:36:43 CST 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Fix segfault


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.555
retrieving revision 1.556
diff -u -d -r1.555 -r1.556
--- chan_sip.c	8 Nov 2004 18:23:01 -0000	1.555
+++ chan_sip.c	9 Nov 2004 02:38:18 -0000	1.556
@@ -5417,8 +5417,8 @@
 					strncpy(p->username, peer->username, sizeof(p->username) - 1);
 					strncpy(p->authname, peer->username, sizeof(p->authname) - 1);
 				}
-				if (!ast_strlen_zero(user->cid_num) && !ast_strlen_zero(p->cid_num))  {
-					strncpy(p->cid_num, user->cid_num, sizeof(p->cid_num) - 1);
+				if (!ast_strlen_zero(peer->cid_num) && !ast_strlen_zero(p->cid_num))  {
+					strncpy(p->cid_num, peer->cid_num, sizeof(p->cid_num) - 1);
 					ast_shrink_phone_number(p->cid_num);
 				}
 				if (!ast_strlen_zero(peer->cid_name) && !ast_strlen_zero(p->cid_name)) 




More information about the svn-commits mailing list