diff --git a/src/rsn_supp/peerkey.c b/src/rsn_supp/peerkey.c index a9d95293e..2b3332ea3 100644 --- a/src/rsn_supp/peerkey.c +++ b/src/rsn_supp/peerkey.c @@ -1141,6 +1141,7 @@ void peerkey_deinit(struct wpa_sm *sm) peerkey = peerkey->next; os_free(prev); } + sm->peerkey = NULL; }