From: Jouni Malinen Date: Mon, 17 Mar 2014 22:05:44 +0000 (+0200) Subject: HS 2.0R2: Clean up debug log during exit path X-Git-Tag: hostap_2_2~521 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb2382619a2c4564f0dc871deef6cbdd2639dea0;p=thirdparty%2Fhostap.git 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 --- diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c index 7d1617a3f..ea269ab9f 100644 --- a/hs20/client/osu_client.c +++ b/hs20/client/osu_client.c @@ -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; }