diff options
author | Mark Spencer <markster@digium.com> | 2004-08-31 14:03:18 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-08-31 14:03:18 +0000 |
commit | 471df8f5122c957b9ef5315fcb247622ad8e0476 (patch) | |
tree | 65c6d9afd4faba53d0690bd2510904b5bfd6f210 /rtp.c | |
parent | 9f1562a59996916571aceb4b532d89e0eec5cc2b (diff) |
Be sure to do ntohl before considering extended field
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -449,7 +449,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) if (ext) { /* RTP Extension present */ hdrlen += 4; - hdrlen += (rtpheader[3] & 0xffff) << 2; + hdrlen += (ntohl(rtpheader[3]) & 0xffff) << 2; } if (res < hdrlen) { |