[openssl/openssl] d64673: Fix Coverity 1520485: logically dead code

Pauli noreply at github.com
Thu Jan 26 09:28:22 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: d646730b89c3c5e26a0eb24ed62a755748be55f7
      https://github.com/openssl/openssl/commit/d646730b89c3c5e26a0eb24ed62a755748be55f7
  Author: Pauli <pauli at openssl.org>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M crypto/cmp/cmp_ctx.c

  Log Message:
  -----------
  Fix Coverity 1520485: logically dead code

The check is unnecessary as the condition is already checked
before the switch statement.

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb at siemens.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20121)

(cherry picked from commit 01a17b24f6649fc192ba6bb9ea34e28ce9678e6c)




More information about the openssl-commits mailing list