From: Dave West Date: Wed, 28 May 2008 16:05:28 +0000 (+0000) Subject: Prevent boom at shutdown that results from trying to purge a user 0 X-Git-Tag: v7.86~2199 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=f7c149111f8fe60116070c3beba8e96470b3d964;p=citadel.git Prevent boom at shutdown that results from trying to purge a user 0 --- diff --git a/citadel/user_ops.c b/citadel/user_ops.c index e75bebccf..b78e8a3e9 100644 --- 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 */