[openssl/openssl] 01a17b: Fix Coverity 1520485: logically dead code

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


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 01a17b24f6649fc192ba6bb9ea34e28ce9678e6c
      https://github.com/openssl/openssl/commit/01a17b24f6649fc192ba6bb9ea34e28ce9678e6c
  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)




More information about the openssl-commits mailing list