EAP-FAST peer: Fix PAC parser error messages
Do not override the parsing error with the "PAC block not terminated with END" message if the reason for the END line not yet being seen is in failure to parse an earlier line. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5b904b3e42
commit
b6e5e14fd4
1 changed files with 2 additions and 1 deletions
|
@ -455,6 +455,7 @@ int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pac) {
|
if (pac) {
|
||||||
|
if (!err)
|
||||||
err = "PAC block not terminated with END";
|
err = "PAC block not terminated with END";
|
||||||
eap_fast_free_pac(pac);
|
eap_fast_free_pac(pac);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue