Browse Source

Fix lastReqData freeing to use wpabuf_free()

Jouni Malinen 15 years ago
parent
commit
f52ab9e6b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/eap_server/eap.c

+ 1 - 1
src/eap_server/eap.c

@@ -1263,7 +1263,7 @@ void eap_server_sm_deinit(struct eap_sm *sm)
 		sm->m->reset(sm, sm->eap_method_priv);
 	wpabuf_free(sm->eap_if.eapReqData);
 	os_free(sm->eap_if.eapKeyData);
-	os_free(sm->lastReqData);
+	wpabuf_free(sm->lastReqData);
 	wpabuf_free(sm->eap_if.eapRespData);
 	os_free(sm->identity);
 	os_free(sm->pac_opaque_encr_key);