aboutsummaryrefslogtreecommitdiff
path: root/src/backend/libpq/be-secure-openssl.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-10-05 15:31:06 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-10-05 15:31:06 +0300
commitf9ecb57a506ada358baa19287d2c438ad01cdbce (patch)
tree1570ea0f8257f0bb1920e761ed7e6776547bc26f /src/backend/libpq/be-secure-openssl.c
parent094ae071605d938c46b440b4c27b11f73a241422 (diff)
downloadpostgresql-f9ecb57a506ada358baa19287d2c438ad01cdbce.tar.gz
postgresql-f9ecb57a506ada358baa19287d2c438ad01cdbce.zip
Clean up WaitLatch calls that passed latch without WL_LATCH_SET
The 'latch' argument is ignored if WL_LATCH_SET is not given. Clarify these calls by not pointlessly passing MyLatch. Discussion: https://www.postgresql.org/message-id/391abe21-413e-4d91-a650-b663af49500c@iki.fi
Diffstat (limited to 'src/backend/libpq/be-secure-openssl.c')
-rw-r--r--src/backend/libpq/be-secure-openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c
index 8ec78c83304..e810be03bd3 100644
--- a/src/backend/libpq/be-secure-openssl.c
+++ b/src/backend/libpq/be-secure-openssl.c
@@ -506,7 +506,7 @@ aloop:
else
waitfor = WL_SOCKET_WRITEABLE | WL_EXIT_ON_PM_DEATH;
- (void) WaitLatchOrSocket(MyLatch, waitfor, port->sock, 0,
+ (void) WaitLatchOrSocket(NULL, waitfor, port->sock, 0,
WAIT_EVENT_SSL_OPEN_SERVER);
goto aloop;
case SSL_ERROR_SYSCALL: