From 2a00e489122f6c4b525090dbdba2855a2ea2d519 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 20 Apr 2015 22:51:55 +0200 Subject: Upgraded to openssl 1.0.2a --- openssl/apps/s_cb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openssl/apps/s_cb.c') diff --git a/openssl/apps/s_cb.c b/openssl/apps/s_cb.c index d5756c0ff..f6e6bcd76 100644 --- a/openssl/apps/s_cb.c +++ b/openssl/apps/s_cb.c @@ -456,8 +456,13 @@ int ssl_print_curves(BIO *out, SSL *s, int noshared) if (ncurves <= 0) return 1; curves = OPENSSL_malloc(ncurves * sizeof(int)); + if(!curves) { + BIO_puts(out, "Malloc error getting supported curves\n"); + return 0; + } SSL_get1_curves(s, curves); + BIO_puts(out, "Supported Elliptic Curves: "); for (i = 0; i < ncurves; i++) { if (i) -- cgit v1.2.3