]> granicus.if.org Git - pgbouncer/commitdiff
check if connection was accepted before logging
authorMarko Kreen <markokr@gmail.com>
Fri, 2 Jan 2009 10:45:36 +0000 (10:45 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 2 Jan 2009 10:45:36 +0000 (10:45 +0000)
src/pooler.c

index b4ad8d2caeea119b5d921bd2ac281c8960cf2290..30a49fa5b29699772032566013f14936f5edf492 100644 (file)
@@ -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,