From 72b8a371c5d3a7aa55aaf628d425535ee182e5bb 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 a34b9e8..aa2a0e9 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; }