]> granicus.if.org Git - pgbouncer/commit
Fix wait time computation with auth_user
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 31 Jul 2019 11:51:44 +0000 (13:51 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 31 Jul 2019 11:51:44 +0000 (13:51 +0200)
commitc53678edc3255e5c22654a5fed69a8fb2945d496
treecb67e674022b2564e097f34f635ae8eb2fba0771
parentb64fbfbf2833e8e35d02836ad10013cdd97f69e5
Fix wait time computation with auth_user

When using auth_user, the transition to the CL_WAITING_LOGIN state
would not initialize the client->wait_start field.  This would either
lead to garbage values being recorded, or under assertions enabled it
would crash in activate_client().

(test_auth_user was actually reproducing this problem, but a crash
requires assertions enabled and new memory being all zero, so it was
difficult to catch it.)

Author: @pinaraf

see #393
src/objects.c