diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-15 21:53:30 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-15 21:53:30 +0000 |
commit | bb3ba458d80bb360d5d224e6957a96ce921bc0a0 (patch) | |
tree | f099ad3e43e82342a68b28e1b77cc01ce24ee765 /main | |
parent | fc08895bbd2747ff48bdb886de6a192d476ca7bc (diff) |
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)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164519 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/frame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/frame.c b/main/frame.c index 8e96b19e1..84a2b0a5a 100644 --- a/main/frame.c +++ b/main/frame.c @@ -476,6 +476,8 @@ struct ast_frame *ast_frdup(const struct ast_frame *f) 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 */ |