[PATCH 2/2] incorrect typecast of void* (addr was used and

Mikael Wikstrom leakim.wikstrom
Fri Aug 19 02:42:52 PDT 2011


not value pointed at)

---
 wpa_supplicant/p2p_supplicant.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 400b6cc..c39f2d9 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -1733,7 +1733,7 @@ void * wpas_p2p_sd_request_upnp(struct
wpa_supplicant *wpa_s, const u8 *dst,
 int wpas_p2p_sd_cancel_request(struct wpa_supplicant *wpa_s, void *req)
 {
 	if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_P2P_MGMT)
-		return wpa_drv_p2p_sd_cancel_request(wpa_s, (u64) req);
+		return wpa_drv_p2p_sd_cancel_request(wpa_s, *((u64*)req));
 	if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL)
 		return -1;
 	return p2p_sd_cancel_request(wpa_s->global->p2p, req);
-- 
1.7.4.1



More information about the Hostap mailing list