From: Scott Deboy Date: Thu, 12 Sep 2013 00:22:00 +0000 (-0700) Subject: Initialize next_proto in s_server - resolves incorrect attempts to free X-Git-Tag: master-post-reformat~1187 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=b0d27cb9028cbf552612baa42255737cca0e32d2 Initialize next_proto in s_server - resolves incorrect attempts to free --- diff --git a/apps/s_server.c b/apps/s_server.c index 35f30e4d23..9359161758 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1065,7 +1065,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