[asterisk-commits] branch 1.2 r37856 - /branches/1.2/frame.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jul 17 17:41:48 MST 2006
Author: russell
Date: Mon Jul 17 19:41:47 2006
New Revision: 37856
URL: http://svn.digium.com/view/asterisk?rev=37856&view=rev
Log:
don't crash if the frame has no data, but has a src
Modified:
branches/1.2/frame.c
Modified: branches/1.2/frame.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/frame.c?rev=37856&r1=37855&r2=37856&view=diff
==============================================================================
--- branches/1.2/frame.c (original)
+++ branches/1.2/frame.c Mon Jul 17 19:41:47 2006
@@ -392,7 +392,7 @@
memcpy(out->data, f->data, out->datalen);
}
if (srclen > 0) {
- out->src = out->data + f->datalen;
+ out->src = buf + sizeof(*out) + AST_FRIENDLY_OFFSET + f->datalen;
/* Must have space since we allocated for it */
strcpy((char *)out->src, f->src);
}
More information about the asterisk-commits
mailing list