if (restart_server != 0)
exit(1);
+ if ((running_as_daemon != 0) && (exitcode == 0))
+ exitcode = CTDLEXIT_SHUTDOWN;
exit(exitcode);
}
CtdlLogPrintf(CTDL_DEBUG, "Closing socket %d\n", con->client_socket);
close(con->client_socket);
+ /* If using AUTHMODE_LDAP, free the DN */
+ if (con->ldap_dn) {
+ free(con->ldap_dn);
+ con->ldap_dn = NULL;
+ }
+
CtdlLogPrintf(CTDL_DEBUG, "Done with RemoveContext()\n");
}