From d18a9c05fb82a85bf3dc4441187b7f22629aa5d2 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 3 Apr 2008 22:47:16 +0200 Subject: [PATCH] Fix crash when a server or attempt by an oper exits. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index a34b9e88..aa2a0e94 100644 --- a/src/client.c +++ b/src/client.c @@ -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; }