become_session(con);
CtdlUserLogout();
PerformSessionHooks(EVT_STOP);
+ client_close(); /* If the client is still connected, blow 'em away. */
become_session(NULL);
syslog(LOG_NOTICE, "[%3d] Session ended.\n", con->cs_pid);
- /* If the client is still connected, blow 'em away. */
- client_close();
-
/* If using AUTHMODE_LDAP, free the DN */
if (con->ldap_dn) {
free(con->ldap_dn);
}
}
-/*
- * flush it again...
- */
-void CtdlClearSystemContext(void)
-{
- CitContext *CCC = MyContext();
-
- memset(CCC, 0, sizeof(CitContext));
- pthread_setspecific(MyConKey, NULL);
-}
/*
* Cleanup any contexts that are left lying around