From 2fa646f51a52836bac22a78fef4f8e4f37ff5632 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Fri, 2 Jan 2009 10:45:36 +0000 Subject: [PATCH] check if connection was accepted before logging --- src/pooler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pooler.c b/src/pooler.c index b4ad8d2..30a49fa 100644 --- a/src/pooler.c +++ b/src/pooler.c @@ -289,7 +289,8 @@ loop: client = accept_client(fd, &addr.in, false); } - slog_debug(client, "P: got connection: %s", conninfo(client)); + if (client) + slog_debug(client, "P: got connection: %s", conninfo(client)); /* * there may be several clients waiting, -- 2.40.0