]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix double free with CONFIG_WPS_STRICT=y
authorJouni Malinen <j@w1.fi>
Sun, 16 Oct 2011 09:11:00 +0000 (12:11 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Oct 2011 09:11:00 +0000 (12:11 +0300)
Commit 17f6b9005641c9c44f55cda825b3a170ffa8ff04 extended the use of
the concatenated WPS IE outside the CONFIG_WPS_STRICT block, but
forgot to remove the old wpabuf_free(wps) call.

src/ap/drv_callbacks.c

index 7d6f01b9c781c98fab755a8d5353792442649c19..cce5920f69af0dd3cdc72c78faf6f30bebd02ccf 100644 (file)
@@ -185,7 +185,6 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
                                wpabuf_free(wps);
                                return -1;
                        }
-                       wpabuf_free(wps);
                }
 #endif /* CONFIG_WPS_STRICT */
                if (ie && ielen > 4 && ie[0] == 0xdd && ie[1] >= 4 &&