]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Fix arithmetic on void pointer
authorJesus Fernandez Manzano <jesus.manzano@galgus.net>
Wed, 9 Oct 2019 07:59:33 +0000 (09:59 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 25 Oct 2019 16:29:53 +0000 (19:29 +0300)
commit305369038bf554f6d76c41455a5bce9fdebba06b
tree6bed7d775ddc149044c8c772c01c9e39a6c07e75
parent00ddc1cc21a8428b87e5e3853508f27f7c5557d2
wpa_supplicant: Fix arithmetic on void pointer

When using void pointers in calculations, the behavior is undefined.
Arithmetic operations on 'void *' is a GNU C extension,
which defines the 'sizeof(void)' to be 1.

This change improves portability of the code.

Signed-off-by: Jesus Fernandez Manzano <jesus.manzano@galgus.net>
wpa_supplicant/wpa_priv.c