sudo_ldap_close() directly. ldap_conn can now be static to sudo.c
efree(logline);
if (!ISSET(flags, NO_EXIT)) {
-#ifdef HAVE_LDAP
- if (ldap_conn != NULL)
- sudo_ldap_close(ldap_conn);
-#endif
+ cleanup(0);
exit(1);
}
}
sigaction_t saved_sa_int, saved_sa_quit, saved_sa_tstp, saved_sa_chld;
static char *runas_user;
static char *runas_group;
-void *ldap_conn;
+static void *ldap_conn;
int
main(argc, argv, envp)
extern int tgetpass_flags;
extern uid_t timestamp_uid;
-extern void *ldap_conn;
#endif
#ifndef errno
extern int errno;