aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_fast_pac.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-12-12 10:00:28 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-12 10:00:28 (GMT)
commitb6e5e14fd4d98357acc08d59c05f7d0f4946864a (patch)
tree8e42f35b85667b69d217f6f9b00be30f9f92991f /src/eap_peer/eap_fast_pac.c
parent5b904b3e421da51bb742f0265ce0b57cb979ae0c (diff)
downloadhostap-b6e5e14fd4d98357acc08d59c05f7d0f4946864a.zip
hostap-b6e5e14fd4d98357acc08d59c05f7d0f4946864a.tar.gz
hostap-b6e5e14fd4d98357acc08d59c05f7d0f4946864a.tar.bz2
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>
Diffstat (limited to 'src/eap_peer/eap_fast_pac.c')
-rw-r--r--src/eap_peer/eap_fast_pac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eap_peer/eap_fast_pac.c b/src/eap_peer/eap_fast_pac.c
index c0986b3..0220cae 100644
--- a/src/eap_peer/eap_fast_pac.c
+++ b/src/eap_peer/eap_fast_pac.c
@@ -455,7 +455,8 @@ int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root,
}
if (pac) {
- err = "PAC block not terminated with END";
+ if (!err)
+ err = "PAC block not terminated with END";
eap_fast_free_pac(pac);
}