Fix crash when a server or attempt by an oper exits.

This commit is contained in:
Jilles Tjoelker 2008-04-03 22:47:16 +02:00
parent 39aff273d8
commit 72b8a371c5
1 changed files with 1 additions and 1 deletions

View File

@ -1952,7 +1952,7 @@ allocate_away(struct Client *client_p)
void
free_away(struct Client *client_p)
{
if(client_p->user->away != NULL) {
if(client_p->user != NULL && client_p->user->away != NULL) {
rb_bh_free(away_heap, client_p->user->away);
client_p->user->away = NULL;
}