Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e60e95

Browse filesBrowse 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
Copy full SHA for 3e60e95

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/backend/libpq/be-secure-openssl.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.