}
}
-#ifdef USING_NONUNIX_GROUPS
- /* Finished with the groupcheck code */
- sudo_nonunix_groupcheck_cleanup();
-#endif
-
if (safe_cmnd == NULL)
safe_cmnd = estrdup(user_cmnd);
tq_foreach_fwd(snl, nss)
nss->close(nss);
+#ifdef USING_NONUNIX_GROUPS
+ /* Finished with the groupcheck code */
+ sudo_nonunix_groupcheck_cleanup();
+#endif
+
/* Deferred exit due to sudo_ldap_close() */
if (ISSET(sudo_mode, (MODE_VALIDATE|MODE_CHECK|MODE_LIST)))
exit(rc);
tq_foreach_fwd(snl, nss)
nss->close(nss);
}
+#ifdef USING_NONUNIX_GROUPS
+ sudo_nonunix_groupcheck_cleanup();
+#endif
sudo_endpwent();
sudo_endgrent();
#ifdef _PATH_SUDO_IO_LOGDIR