Initialize next_proto in s_server - resolves incorrect attempts to free
authorScott Deboy <sdeboy@secondstryke.com>
Thu, 12 Sep 2013 00:22:00 +0000 (17:22 -0700)
committerScott Deboy <sdeboy@secondstryke.com>
Thu, 12 Sep 2013 00:22:00 +0000 (17:22 -0700)
apps/s_server.c

index 35f30e4d23e6893b993b526c0a60d4ac84762b7d..9359161758c97f000f517b1afccdebba98aba0c2 100644 (file)
@@ -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