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 75c5813806
commit d18a9c05fb

View file

@ -1952,7 +1952,7 @@ allocate_away(struct Client *client_p)
void void
free_away(struct Client *client_p) 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); rb_bh_free(away_heap, client_p->user->away);
client_p->user->away = NULL; client_p->user->away = NULL;
} }