summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-03-17 10:21:25 +0000
committerMatt Caswell <matt@openssl.org>2017-03-17 12:32:59 +0000
commit9998b32cb63b0bdd3d014abfa1d70e9a2c20a283 (patch)
treeeaec96f53420b09da26d3ba4d23d6d39a2215f0f /apps
parent3fb2c3e452c9adea24edf8b0b96f6325c0473ee9 (diff)
Fix no-dtls builds
Commits f2ff1432f in master and 14d4d7eda in 1.1.0 broke the no-dtls build by moving the position of a "#endif" for OPENSSL_NO_DTLS in a change which is otherwise unrelated to DTLS. This puts it back to where it was. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2974)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_server.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 12792e9643..5858278b46 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -138,9 +138,14 @@ static const char *session_id_prefix = NULL;
#ifndef OPENSSL_NO_DTLS
static int enable_timeouts = 0;
static long socket_mtu;
-static int dtlslisten = 0;
#endif
+/*
+ * We define this but make it always be 0 in no-dtls builds to simplify the
+ * code.
+ */
+static int dtlslisten = 0;
+
static int early_data = 0;
#ifndef OPENSSL_NO_PSK