Re: [PATCH] RSN authenticator: adjust parameter type in hexdump to avoid warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 17, 2019 at 02:48:51PM +0200, Leon M. George wrote:
> diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
> @@ -979,7 +979,7 @@ void wpa_receive(struct wpa_authenticator *wpa_auth,

>  	wpa_hexdump(MSG_MSGDUMP,
>  		    "WPA: EAPOL-Key header (ending before Key MIC)",
> -		    key, sizeof(*key));
> +		    (const u8 *) key, sizeof(*key));

Which compiler are you using and what warning do you see here?
wpa_hexdump() takes in a const void * and it is not clear why this key
variable (struct wpa_eapol_key *) would need to be typecast to something
else.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux