summaryrefslogtreecommitdiffstats
path: root/apps/s_cb.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-11-18 15:45:16 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-11-18 15:45:16 +0000
commitb5cadfb564a604c0ba1c49984ac796cfd8310731 (patch)
tree0ced05d7234cca69b0c7be6ee74023a711141b65 /apps/s_cb.c
parentc4fc172240b867350967ee50734267c402450e19 (diff)
add -naccept <n> option to s_server to automatically exit after <n> connections
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r--apps/s_cb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 58d0da8e97..a007899ae7 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -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++)
{