add -naccept <n> option to s_server to automatically exit after <n> connections
[openssl.git] / apps / s_cb.c
index 58d0da8e97a4e6822c916e935ac6b5a0552c0dd3..a007899ae77aa26fc1de7e07ee59973624dabcd5 100644 (file)
@@ -454,13 +454,13 @@ int ssl_print_curves(BIO *out, SSL *s, int noshared)
                }
        if (ncurves == 0)
                BIO_puts(out, "NONE");
+       OPENSSL_free(curves);
        if (noshared)
                {
                BIO_puts(out, "\n");
                return 1;
                }
        BIO_puts(out, "\nShared Elliptic curves: ");
-       OPENSSL_free(curves);
        ncurves = SSL_get_shared_curve(s, -1);
        for (i = 0; i < ncurves; i++)
                {