]> git.ipfire.org Git - thirdparty/hostap.git/commit
ProxyARP: Use more robust DHCP option parsing
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 31 Jan 2017 12:43:56 +0000 (14:43 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 31 Jan 2017 15:46:13 +0000 (17:46 +0200)
commit5a9d5049381a1bcebd527838362ff4d37de6758e
tree42329eb8ff875c73e85f57dde474cabe3c7976de
parente64c13febbd4ba1deba654220e9169a1ee34b3fb
ProxyARP: Use more robust DHCP option parsing

Do not depend on undefined behavior with pointer arithmetic when
checking whether there is sufficient room for an option.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/dhcp_snoop.c