diff options
author | Sven Eckelmann <[email protected]> | 2020-07-22 20:36:43 +0200 |
---|---|---|
committer | Simon Wunderlich <[email protected]> | 2020-08-18 19:40:03 +0200 |
commit | 303216e76dcab6049c9d42390b1032f0649a8206 (patch) | |
tree | 068638f8971e1c6bd1c2d5f6acbf923ab4d6f168 /lib/mpi/mpiutil.c | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) |
batman-adv: Avoid uninitialized chaddr when handling DHCP
The gateway client code can try to optimize the delivery of DHCP packets to
avoid broadcasting them through the whole mesh. But also transmissions to
the client can be optimized by looking up the destination via the chaddr of
the DHCP packet.
But the chaddr is currently only done when chaddr is fully inside the
non-paged area of the skbuff. Otherwise it will not be initialized and the
unoptimized path should have been taken.
But the implementation didn't handle this correctly. It didn't retrieve the
correct chaddr but still tried to perform the TT lookup with this
uninitialized memory.
Reported-by: [email protected]
Fixes: 6c413b1c22a2 ("batman-adv: send every DHCP packet as bat-unicast")
Signed-off-by: Sven Eckelmann <[email protected]>
Acked-by: Antonio Quartulli <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions