Give a better error if an attempt is made to set a zero length groups list
authorMatt Caswell <matt@openssl.org>
Fri, 26 Oct 2018 14:29:15 +0000 (15:29 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Nov 2018 11:31:22 +0000 (11:31 +0000)
commitefd67e01a5471f9b0745018d7707b69876b070f6
treeb5b217a7901ae9801413552087fd27e4f5a9927a
parentf306b9e62a375add764c7d9de6e311aaa0229865
Give a better error if an attempt is made to set a zero length groups list

Previously we indicated this as a malloc failure which isn't very
helpful.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/7479)

(cherry picked from commit 680bd131b69d57e891888ab70d300176a5a16617)
doc/man3/SSL_CTX_set1_curves.pod
ssl/t1_lib.c