HS 2.0R2: Clean up debug log during exit path

deinit_ctx() may print debug information, so do not call
wpa_debug_close_file() before deinit_ctx().

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-03-18 00:05:44 +02:00 committed by Jouni Malinen
parent 48408fce2f
commit bb2382619a

View File

@ -3193,11 +3193,11 @@ int main(int argc, char *argv[])
wpa_printf(MSG_INFO, "Unknown command '%s'", argv[optind]);
}
deinit_ctx(&ctx);
wpa_printf(MSG_DEBUG,
"===[hs20-osu-client END ]======================");
wpa_debug_close_file();
deinit_ctx(&ctx);
return ret;
}