[vlc-commits] [Git][videolan/vlc][master] amt: fix bogus ipv6 length shift

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jan 14 17:23:44 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
73f7ae0f by Steve Lhomme at 2023-01-14T17:08:17+00:00
amt: fix bogus ipv6 length shift

- - - - -


1 changed file:

- modules/access/amt.c


Changes:

=====================================
modules/access/amt.c
=====================================
@@ -1331,7 +1331,7 @@ static int serialize_ipv6_pkt(amt_ipv6_t *ip, uint8_t *buf, int buflen){
     buf[i++] = ((ip->flow_label >> 8) & 0xFF);
     buf[i++] = (ip->flow_label & 0xFF);
 
-    buf[i++] = ip->payload_len >> 16;
+    buf[i++] = ip->payload_len >> 8;
     buf[i++] = ip->payload_len & 0xFF;
     buf[i++] = ip->next_header;
     buf[i++] = ip->hop_limit;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/73f7ae0ff7fd1f9d95356934736ee526df9b564a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/73f7ae0ff7fd1f9d95356934736ee526df9b564a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list