aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-18 21:37:21 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-18 21:37:21 +0000
commit2c4015877e5eb0281bd69eaaa375e9e18db496ad (patch)
tree412940c9632935af35f291792c1e7a307d9e05e3 /include
parent2efea2031b9b3879ce3f582810d99ccfdd50b867 (diff)
Revert adding the packed attribute, as it really doesn't make sense why that
would do any good. Fix the real bug, which is to do the check to see if the frame came from a translator at the beginning of ast_frame_free(), instead of at the end. This ensures that it always gets checked, even if none of the parts of the frame are malloc'd, and also ensures that we aren't looking at free'd memory in the case that it is a malloc'd frame. (closes issue #11792, reported by explidous, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99081 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/translate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h
index 9437fa4e9..a81d0072a 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,