Commit
b488a12948751f57871f09baa345e59b23959a41 ('Clear PMK length and
check for this when deriving PTK') started rejecting PTK derivation
based on PMK length. This reduced coverage from the eapol-fuzzer, so set
the default length when initializing the state machine in the fuzzer to
reach the previously used code paths.
Signed-off-by: Jouni Malinen <j@w1.fi>
#include "utils/eloop.h"
#include "eapol_supp/eapol_supp_sm.h"
#include "rsn_supp/wpa.h"
+#include "rsn_supp/wpa_i.h"
struct arg_ctx {
ctx->get_bssid = get_bssid;
arg->wpa = wpa_sm_init(ctx);
- return arg->wpa ? 0 : -1;
+ if (!arg->wpa)
+ return -1;
+ arg->wpa->pmk_len = PMK_LEN;
+ return 0;
}