]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-FAST peer: Fix PAC parser error messages
authorJouni Malinen <j@w1.fi>
Sat, 12 Dec 2015 10:00:28 +0000 (12:00 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 12 Dec 2015 10:00:28 +0000 (12:00 +0200)
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>
src/eap_peer/eap_fast_pac.c

index c0986b314747e1c796db61672abb8fa29631afe9..0220caedaf88303ec7d29be7d87d4d45a955b704 100644 (file)
@@ -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);
        }