Skip to content

Commit 3e60e95

Browse files
committed
Fix check for 'outlen' return from SSL_select_next_proto()
Fixes compiler warning reported by Andres Freund. Discusssion: https://www.postgresql.org/message-id/20240408015055.xsuahullywpfwyvu@awork3.anarazel.de
1 parent d60ab76 commit 3e60e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/libpq/be-secure-openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ alpn_cb(SSL *ssl,
13241324
retval = SSL_select_next_proto((unsigned char **) out, outlen,
13251325
alpn_protos, sizeof(alpn_protos),
13261326
in, inlen);
1327-
if (*out == NULL || *outlen > sizeof(alpn_protos) || outlen <= 0)
1327+
if (*out == NULL || *outlen > sizeof(alpn_protos) || *outlen <= 0)
13281328
return SSL_TLSEXT_ERR_NOACK; /* can't happen */
13291329

13301330
if (retval == OPENSSL_NPN_NEGOTIATED)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy