summaryrefslogtreecommitdiff
path: root/ssl/s2_lib.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-10-23 19:46:02 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-10-23 19:46:02 +0000
commite9fcefce9bb70f20c272a996443928c5f6ab8cd8 (patch)
treeae816a5a768ec78af3610e509ca39507b33aa9f7 /ssl/s2_lib.c
parentc07d7b3a386974c338492659291008bed07948e6 (diff)
Diffstat (limited to 'ssl/s2_lib.c')
-rw-r--r--ssl/s2_lib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ssl/s2_lib.c b/ssl/s2_lib.c
index 7e3674a685fb9..d55b93f76bb7f 100644
--- a/ssl/s2_lib.c
+++ b/ssl/s2_lib.c
@@ -435,10 +435,7 @@ const SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p)
((unsigned long)p[1] << 8L) | (unsigned long)p[2];
c.id = id;
cp = OBJ_bsearch_ssl_cipher_id(&c, ssl2_ciphers, SSL2_NUM_CIPHERS);
- if ((cp == NULL) || (cp->valid == 0))
- return NULL;
- else
- return cp;
+ return cp;
}
int ssl2_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)