]> Git Repo - qemu.git/commit - net/l2tpv3.c
l2tpv3: fix cookie decoding
authorAlexis Dambricourt <[email protected]>
Mon, 4 Jan 2016 23:26:07 +0000 (00:26 +0100)
committerJason Wang <[email protected]>
Mon, 11 Jan 2016 03:01:35 +0000 (11:01 +0800)
commit3be9b3528debd985b7a84ace0626cacf5ffe5ec4
treea8f82a0cb4e2288623f664c7cb63300d1965e52c
parentaa7f9966dfdff500bbbf1956d9e115b1fa8987a6
l2tpv3: fix cookie decoding

If a 32 bits l2tpv3 frame cookie MSB if set to 1, the cast to uint64_t
cookie will spread 1 to the four most significant bytes.
Then the condition (cookie != s->rx_cookie) becomes false.

Signed-off-by: Alexis Dambricourt <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
net/l2tpv3.c
This page took 0.023854 seconds and 4 git commands to generate.