projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2154154
)
Prevent boom at shutdown that results from trying to purge a user 0
author
Dave West
<davew@uncensored.citadel.org>
Wed, 28 May 2008 16:05:28 +0000
(16:05 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Wed, 28 May 2008 16:05:28 +0000
(16:05 +0000)
citadel/user_ops.c
patch
|
blob
|
history
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index e75bebccf6c11d02929d01869091375a4bc8b5a1..b78e8a3e9eb75ae52e8ec13dcbf8996cd4a341f9 100644
(file)
--- a/
citadel/user_ops.c
+++ b/
citadel/user_ops.c
@@
-670,7
+670,7
@@
void logout(void)
CCC->logged_in = 0;
/* Check to see if the user was deleted whilst logged in and purge them if necessary */
- if (
CCC->user.axlevel == 0
)
+ if (
(CCC->user.axlevel == 0) && (CCC->user.usernum)
)
purge_user(CCC->user.fullname);
/* Free any output buffers */