aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-19 03:44:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-19 03:44:04 +0000
commita91cb86ea6f6a78beb1a47c61c813e3639feb92b (patch)
tree17c76e1b784068068889efe94d66f4489769696d
parent9486b3e0bd07e7dba1fb353de7396506b17a93cb (diff)
Avoid access of uninitialized memory. This caused a bunch of crashes for me
while doing load testing of development branch where I'm working on some performance improvements. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116978 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index dc65b11f0..67bfff42c 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -6977,7 +6977,7 @@ static int socket_process(struct iax2_thread *thread)
/* allocate an iax_frame with 4096 bytes of data buffer */
fr = alloca(sizeof(*fr) + 4096);
- fr->callno = 0;
+ memset(fr, 0, sizeof(*fr));
fr->afdatalen = 4096; /* From alloca() above */
/* Copy frequently used parameters to the stack */