Commit 1c8235c9 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix a code inconsistency



Move from two ifs to a single one with an &&

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent fc237de7
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -176,11 +176,9 @@ static bool InstallCertificate(SSL *ssl) {
    return false;
  }

  if (pkey) {
    if (!SSL_use_PrivateKey(ssl, pkey.get())) {
  if (pkey && !SSL_use_PrivateKey(ssl, pkey.get())) {
    return false;
  }
  }

  if (x509 && !SSL_use_certificate(ssl, x509.get())) {
    return false;