[PATCH] Check WPA state machine for NULL in scan results processing

Jouni Malinen j at w1.fi
Sat May 4 09:58:05 EDT 2013


On Fri, Apr 12, 2013 at 04:14:13PM -0700, Dmitry Shmidt wrote:
> diff --git a/src/rsn_supp/preauth.c b/src/rsn_supp/preauth.c
> @@ -416,7 +416,7 @@ void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
>  int rsn_preauth_scan_results(struct wpa_sm *sm)
>  {
> -	if (sm->ssid_len == 0)
> +	if (sm == NULL || sm->ssid_len == 0)
>  		return -1;

As pointed out in a separate email thread, this is not needed in
hostap.git and not the proper way of addressing the issue behind the
proposed change here. As such, I'm dropping this.
 
-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list