diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-31 14:03:18 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-31 14:03:18 +0000 |
commit | 22b635dce9a991053e720761bbecd1028969c15e (patch) | |
tree | 65c6d9afd4faba53d0690bd2510904b5bfd6f210 /rtp.c | |
parent | f5ced302eff49ed5bfdaf46b583fd3bbf782facd (diff) |
Be sure to do ntohl before considering extended field
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3691 f38db490-d61c-443f-a65b-d21fe96a405b
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) { |