From: Dr. Stephen Henson Date: Tue, 3 Jul 2012 14:24:33 +0000 (+0000) Subject: no need to check s->server as default_nid is never used for TLS 1.2 client authentication X-Git-Tag: master-post-reformat~1777 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=15a70fe5103cd3c4cb3a7690cdb608bfa2579140;hp=3dbc46dfcd918f7869496e34b0896dbac01d25a0 no need to check s->server as default_nid is never used for TLS 1.2 client authentication --- diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 4553468499..eb6aa550de 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -3482,7 +3482,7 @@ int tls1_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain, * have set preferred signature algorithms check we support * sha1. */ - if (s->server && default_nid > 0 && c->conf_sigalgs) + if (default_nid > 0 && c->conf_sigalgs) { size_t j; const unsigned char *p = c->conf_sigalgs;