From f0001ecf6628a231e36ded8d34a4297cd921fb81 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 18 Jan 2008 21:22:21 +0000 Subject: [PATCH] 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/branches/1.4@99079 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/translate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h index a81d0072ac..9437fa4e9a 100644 --- a/include/asterisk/translate.h +++ b/include/asterisk/translate.h @@ -149,7 +149,7 @@ struct ast_trans_pvt { struct ast_trans_pvt *next; /*!< next in translator chain */ struct timeval nextin; struct timeval nextout; -}; +} attribute_packed; /*! \brief generic frameout function */ struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt,