]> granicus.if.org Git - openssl/commitdiff
Add missing code from SSL_CONF backport.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 13 Sep 2013 15:19:15 +0000 (16:19 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 14 Sep 2013 12:53:44 +0000 (13:53 +0100)
ssl/t1_lib.c

index ea10a52f9190610921ce2d8936fe2ef91b46bf33..10f094fcd5fc70d9121debffed7ab542ecb91005 100644 (file)
@@ -525,6 +525,8 @@ int tls1_set_curves_list(unsigned char **pext, size_t *pextlen,
        ncb.nidcnt = 0;
        if (!CONF_parse_list(str, ':', 1, nid_cb, &ncb))
                return 0;
+       if (pext == NULL)
+               return 1;
        return tls1_set_curves(pext, pextlen, ncb.nid_arr, ncb.nidcnt);
        }
 /* For an EC key set TLS id and required compression based on parameters */