aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-04-25 15:35:09 +0200
committerRichard Levitte <levitte@openssl.org>2017-04-25 15:44:48 +0200
commita5eef31e257bc6267e0973edda18ee2f180ed081 (patch)
treea425ccd1e9d15d59fbb27296574d5202c18f7a2b /apps
parent208d721a004026b128dc66300e32e65a9dc7df1d (diff)
downloadopenssl-a5eef31e257bc6267e0973edda18ee2f180ed081.tar.gz
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)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 7fb7772826..ebf772da07 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -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);