We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 708e703 commit b32602cCopy full SHA for b32602c
components/wpa_supplicant/src/common/sae.c
@@ -2312,10 +2312,10 @@ int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf)
2312
hash_len = sae->tmp->kck_len;
2313
2314
/* Send-Confirm */
2315
- sc = wpabuf_put(buf, 0);
2316
- wpabuf_put_le16(buf, sae->send_confirm);
2317
if (sae->send_confirm < 0xffff)
2318
sae->send_confirm++;
+ sc = wpabuf_put(buf, 0);
+ wpabuf_put_le16(buf, sae->send_confirm);
2319
2320
if (sae->tmp->ec) {
2321
if (sae_cn_confirm_ecc(sae, sc, sae->tmp->own_commit_scalar,
0 commit comments