]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0R2: Clean up debug log during exit path
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 17 Mar 2014 22:05:44 +0000 (00:05 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 17 Mar 2014 22:40:04 +0000 (00:40 +0200)
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>
hs20/client/osu_client.c

index 7d1617a3f4108354c762281658b414c0ed7b105e..ea269ab9fadb62d9aaaf41ed250d0260225bdc77 100644 (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;
 }