]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 99079 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Fri, 18 Jan 2008 21:24:05 +0000 (21:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 18 Jan 2008 21:24:05 +0000 (21:24 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99079 | russell | 2008-01-18 15:22:21 -0600 (Fri, 18 Jan 2008) | 4 lines

Since we're relying on the offset between the frame and the beginning of the translator
pvt struct, set the packed attribute to make sure we get to the right place.
(potential fix for issue #11792)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99080 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/translate.h

index 97f10283f3f7643b4f82ebddad10804c66d35fae..f4673944c7579b57cac889b0e6f34799884cb1e5 100644 (file)
@@ -147,7 +147,7 @@ struct ast_trans_pvt {
        struct timeval nextin;
        struct timeval nextout;
        unsigned int destroy:1;
-};
+} attribute_packed;
 
 /*! \brief generic frameout function */
 struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt,