From: Marko Kreen Date: Fri, 2 Jan 2009 10:45:36 +0000 (+0000) Subject: check if connection was accepted before logging X-Git-Tag: pgbouncer_1_3_rc1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fa646f51a52836bac22a78fef4f8e4f37ff5632;p=pgbouncer check if connection was accepted before logging --- 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,