commit 17bfbbd39740b6b53cc91bb7234d5128981e0045
parent 6b58ab1a085a9b135f608cc2551a0cd350996e7f
Author: Denis Kenzior <denkenz@gmail.com>
Date: Tue, 17 Jul 2018 19:15:08 -0500
main: Re-arrange _exit order
The plugin_exit was in the wrong place, it should be triggered in case
genl creation fails. Also adhoc_exit was in the wrong sequence compared
to _init()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -458,10 +458,9 @@ int main(int argc, char *argv[])
rfkill_exit();
known_networks_exit();
network_exit();
- adhoc_exit();
eapol_exit();
eap_exit();
- plugin_exit();
+ adhoc_exit();
l_genl_family_unref(nl80211);
@@ -472,6 +471,7 @@ fail_device:
l_genl_unref(genl);
fail_genl:
+ plugin_exit();
dbus_exit();
done: