]> jfr.im git - solanum.git/blobdiff - authd/authd.c
authd: try to destroy all providers on the way out.
[solanum.git] / authd / authd.c
index c6ed0911c7ce6f33edee21d05380c7a843d4bc20..1432a54587fc6b840785b42589cb4ebcbd206ab1 100644 (file)
@@ -88,7 +88,7 @@ handle_options(int parc, char *parv[])
                return;
        }
 
-       handler->handler(parv[1], parc - 2, (const char **)(parv + 3));
+       handler->handler(parv[1], parc - 2, (const char **)&parv[2]);
 }
 
 static void
@@ -202,5 +202,7 @@ main(int argc, char *argv[])
 
        rb_helper_loop(authd_helper, 0);
 
+       destroy_providers();
+
        return 0;
 }