Avoid uninitialized seq number in debug print for testing functionality
If the driver fetch for the current sequency number fails, do not try to print the value in a debug print without having cleared it. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
c179002789
commit
456bfec470
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ static inline int wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth,
|
|||
|
||||
if (!wpa_auth->cb->get_seqnum)
|
||||
return -1;
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
os_memset(seq, 0, WPA_KEY_RSC_LEN);
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
res = wpa_auth->cb->get_seqnum(wpa_auth->cb_ctx, addr, idx, seq);
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
if (!addr && idx < 4 && wpa_auth->conf.gtk_rsc_override_set) {
|
||||
|
|
Loading…
Reference in a new issue