mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
SAE: Fix commit message override with external authentication
Do not add duplicate Transaction Sequence and Status Code fields when using test functionality to override SAE commit message. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
d08ef5798d
commit
be609c6fc6
@ -98,8 +98,10 @@ static struct wpabuf * sme_auth_build_sae_commit(struct wpa_supplicant *wpa_s,
|
||||
buf = wpabuf_alloc(4 + wpabuf_len(wpa_s->sae_commit_override));
|
||||
if (!buf)
|
||||
return NULL;
|
||||
wpabuf_put_le16(buf, 1); /* Transaction seq# */
|
||||
wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS);
|
||||
if (!external) {
|
||||
wpabuf_put_le16(buf, 1); /* Transaction seq# */
|
||||
wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS);
|
||||
}
|
||||
wpabuf_put_buf(buf, wpa_s->sae_commit_override);
|
||||
return buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user