]> granicus.if.org Git - openssl/commit
Error out immediately on empty ciphers list.
authorEmilia Kasper <emilia@openssl.org>
Wed, 15 Apr 2015 12:18:55 +0000 (14:18 +0200)
committerEmilia Kasper <emilia@openssl.org>
Fri, 17 Apr 2015 16:43:30 +0000 (18:43 +0200)
commit3ae91cfb327c9ed689b9aaf7bca01a3f5a0657cb
tree5cfd1f3bb141239f8d809567777fe0d7711c0c2c
parent13efe9d17e7ee522c5aaa07f3076184161ede61f
Error out immediately on empty ciphers list.

A 0-length ciphers list is never permitted. The old code only used to
reject an empty ciphers list for connections with a session ID. It
would later error out on a NULL structure, so this change just moves
the alert closer to the problem source.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/s3_srvr.c