Check sk_SSL_CIPHER_new_null return value
authorMatt Caswell <matt@openssl.org>
Sat, 9 May 2015 05:51:25 +0000 (13:51 +0800)
committerMatt Caswell <matt@openssl.org>
Mon, 11 May 2015 10:53:50 +0000 (11:53 +0100)
commitedc2a76ade6ea8e22e4f092d33cd6171872a5f82
treedc1ee505d2dc0695cb27640820489b44bf2e5cc2
parent8dfe1e4dd27c21a0ccebbb97d9b6a3612e8d54ef
Check sk_SSL_CIPHER_new_null return value

If sk_SSL_CIPHER_new_null() returns NULL then ssl_bytes_to_cipher_list()
should also return NULL.

Based on an original patch by mrpre <mrpre@163.com>.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 14def5f5375594830597cc153e11c6017f6adddf)
ssl/ssl_lib.c