[asterisk-commits] russell: trunk r164519 - /trunk/main/frame.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 15 15:53:30 CST 2008


Author: russell
Date: Mon Dec 15 15:53:30 2008
New Revision: 164519

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164519
Log:
Make sure we handle a uint32_t payload in ast_frdup()

(closes issue #14080)
Reported by: fnordian
Patches:
      frame.patch uploaded by fnordian (license 110)

Modified:
    trunk/main/frame.c

Modified: trunk/main/frame.c
URL: http://svn.digium.com/view/asterisk/trunk/main/frame.c?view=diff&rev=164519&r1=164518&r2=164519
==============================================================================
--- trunk/main/frame.c (original)
+++ trunk/main/frame.c Mon Dec 15 15:53:30 2008
@@ -476,6 +476,8 @@
 	if (out->datalen) {
 		out->data.ptr = buf + sizeof(*out) + AST_FRIENDLY_OFFSET;
 		memcpy(out->data.ptr, f->data.ptr, out->datalen);	
+	} else {
+		out->data.uint32 = f->data.uint32;
 	}
 	if (srclen > 0) {
 		/* This may seem a little strange, but it's to avoid a gcc (4.2.4) compiler warning */




More information about the asterisk-commits mailing list