Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit3e60e95

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 parentd60ab76 commit3e60e95

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((unsignedchar**)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
returnSSL_TLSEXT_ERR_NOACK;/* can't happen */
13291329

13301330
if (retval==OPENSSL_NPN_NEGOTIATED)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp