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

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


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 168972055815b7082deffbe8bbb12286c2d5aa43
      https://github.com/openssl/openssl/commit/168972055815b7082deffbe8bbb12286c2d5aa43
  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