From fd680659ee5ec23c987c3993933f6533de767f79 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 27 Feb 2016 09:10:40 +1100 Subject: [PATCH] Generator loop should never return --- src/generator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 154b87cc..ca2c6adf 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2928,6 +2928,8 @@ void *generator(void *arg) proxy_mode(ckp, pi); } else server_mode(ckp, pi); - dealloc(ckp->gdata); + /* We should never get here unless there's a fatal error */ + LOGEMERG("Generator failure, shutting down"); + exit(1); return NULL; }