[Asterisk-cvs] zaptel zaptel.c,1.74,1.75
markster at lists.digium.com
markster at lists.digium.com
Sun May 9 13:40:08 CDT 2004
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv10426
Modified Files:
zaptel.c
Log Message:
Prevent possible double free
Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- zaptel.c 4 May 2004 04:46:18 -0000 1.74
+++ zaptel.c 9 May 2004 17:49:49 -0000 1.75
@@ -702,7 +702,7 @@
spin_lock_irqsave(&ss->lock, flags);
ss->blocksize = j; /* set the blocksize */
oldbuf = ss->readbuf[0]; /* Keep track of the old buffer */
-
+ ss->readbuf[0] = NULL;
if (newbuf) {
for (x=0;x<numbufs;x++) {
ss->readbuf[x] = newbuf + x * j;
More information about the svn-commits
mailing list