mirror of
https://github.com/openssl/openssl.git
synced 2024-12-16 13:33:49 +08:00
Add guards around one of use of IPPROTO_SCTP where it was missing
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3304)
This commit is contained in:
parent
208d721a00
commit
a5eef31e25
@ -2199,10 +2199,12 @@ static int sv_body(int s, int stype, int prot, unsigned char *context)
|
||||
/* want to do MTU discovery */
|
||||
BIO_ctrl(sbio, BIO_CTRL_DGRAM_MTU_DISCOVER, 0, NULL);
|
||||
|
||||
# ifndef OPENSSL_NO_SCTP
|
||||
if (prot != IPPROTO_SCTP) {
|
||||
/* Turn on cookie exchange. Not necessary for SCTP */
|
||||
SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE);
|
||||
}
|
||||
# endif
|
||||
} else
|
||||
#endif
|
||||
sbio = BIO_new_socket(s, BIO_NOCLOSE);
|
||||
|
Loading…
Reference in New Issue
Block a user