Skip to content

Commit 04ada43

Browse files
Kilio22MathisMARION
authored andcommitted
supp: reset ptk on pmk install
1 parent 9eff07c commit 04ada43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app_wsrd/supplicant/supplicant.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ static void supp_mbedtls_export_keys(void *p_expkey, mbedtls_ssl_key_export_type
122122
* potential retransmissions.
123123
*/
124124
supp->replay_counter = -1;
125+
126+
// Reset PTK to prevent replay of EAPoL-Key frames with the old PTK.
127+
memset(supp->ptk, 0, sizeof(supp->ptk));
125128
}
126129

127130
static void supp_mbedtls_debug(void *ctx, int level, const char *file, int line, const char *string)

0 commit comments

Comments
 (0)