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
This commit is contained in:
parent
d60ab76f63
commit
3e60e956b0
@ -1324,7 +1324,7 @@ alpn_cb(SSL *ssl,
|
||||
retval = SSL_select_next_proto((unsigned char **) out, outlen,
|
||||
alpn_protos, sizeof(alpn_protos),
|
||||
in, inlen);
|
||||
if (*out == NULL || *outlen > sizeof(alpn_protos) || outlen <= 0)
|
||||
if (*out == NULL || *outlen > sizeof(alpn_protos) || *outlen <= 0)
|
||||
return SSL_TLSEXT_ERR_NOACK; /* can't happen */
|
||||
|
||||
if (retval == OPENSSL_NPN_NEGOTIATED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user