commit f78ea26f13dbea7091c7edafb0aebe2428ba2c48
parent 8ca638fb889c4dd3ba88d29aeebc7d970b51d036
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 8 Sep 2021 11:19:01 -0700
fils: change fatal return code to -EPROTO
This keeps FILS consistent with what netdev expects for a fatal
auth-proto return.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fils.c b/src/fils.c
@@ -289,7 +289,7 @@ static int fils_derive_key_data(struct fils_sm *fils)
if (ie_parse_rsne_from_data(fils->hs->supplicant_ie,
fils->hs->supplicant_ie[1] + 2,
&rsn_info) < 0)
- return -EBADMSG;
+ return -EPROTO;
rsn_info.num_pmkids = 1;
rsn_info.pmkids = fils->hs->pmk_r1_name;