From 8ae78c6bd90d19bfcc4b5854f1b9285d6fdcfa70 Mon Sep 17 00:00:00 2001 From: Scott Deboy Date: Wed, 11 Sep 2013 17:22:00 -0700 Subject: [PATCH] Initialize next_proto in s_server - resolves incorrect attempts to free Cherry pick of b0d27cb9028cbf552612baa42255737cca0e32d2. --- apps/s_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/s_server.c b/apps/s_server.c index 8a5a1376c0..9a22345c21 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1023,7 +1023,7 @@ int MAIN(int argc, char *argv[]) tlsextctx tlsextcbp = {NULL, NULL, SSL_TLSEXT_ERR_ALERT_WARNING}; # ifndef OPENSSL_NO_NEXTPROTONEG const char *next_proto_neg_in = NULL; - tlsextnextprotoctx next_proto; + tlsextnextprotoctx next_proto = { NULL, 0}; const char *alpn_in = NULL; tlsextalpnctx alpn_ctx = { NULL, 0}; # endif -- 2.40.0