[Asterisk-cvs] asterisk/channels chan_sip.c,1.599,1.600
russell at lists.digium.com
russell at lists.digium.com
Sun Dec 26 13:13:00 CST 2004
- Previous message: [Asterisk-cvs] asterisk/apps app_queue.c,1.104,1.105
- Next message: [Asterisk-cvs] asterisk/channels chan_iax2.c, 1.228,
1.229 iax2-parser.c, 1.31, 1.32 iax2-parser.h, 1.11,
1.12 iax2.h, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31873/channels
Modified Files:
chan_sip.c
Log Message:
fix to work with astobj stuff
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.599
retrieving revision 1.600
diff -u -d -r1.599 -r1.600
--- chan_sip.c 25 Dec 2004 22:15:32 -0000 1.599
+++ chan_sip.c 26 Dec 2004 18:08:06 -0000 1.600
@@ -8377,8 +8377,9 @@
user = (struct sip_user *)malloc(sizeof(struct sip_user));
if (user) {
- suserobjs++;
memset(user, 0, sizeof(struct sip_user));
+ suserobjs++;
+ ASTOBJ_INIT(user);
strncpy(user->name, name, sizeof(user->name)-1);
oldha = user->ha;
user->ha = NULL;
@@ -8521,8 +8522,10 @@
if (!peer)
return NULL;
- apeerobjs++;
memset(peer, 0, sizeof(struct sip_peer));
+ apeerobjs++;
+ ASTOBJ_INIT(peer);
+
peer->expire = -1;
peer->pokeexpire = -1;
strncpy(peer->name, name, sizeof(peer->name)-1);
- Previous message: [Asterisk-cvs] asterisk/apps app_queue.c,1.104,1.105
- Next message: [Asterisk-cvs] asterisk/channels chan_iax2.c, 1.228,
1.229 iax2-parser.c, 1.31, 1.32 iax2-parser.h, 1.11,
1.12 iax2.h, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list