projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d04e120
)
Close sockets properly at logout
author
Art Cancro
<ajc@citadel.org>
Sun, 20 Mar 2011 06:16:13 +0000
(
02:16
-0400)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 16:53:01 +0000
(16:53 +0000)
citadel/context.c
patch
|
blob
|
history
diff --git
a/citadel/context.c
b/citadel/context.c
index c6575d3dba1e0194be7b21e6045a355be98823fc..a04198db2529c148f160096d8895e398550164fa 100644
(file)
--- a/
citadel/context.c
+++ b/
citadel/context.c
@@
-352,13
+352,11
@@
void RemoveContext (CitContext *con)
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);