[openssl/openssl] 6ed700: Fix incomplete BIO_dup_state() error check

Niels Dossche noreply at github.com
Wed Feb 8 16:09:24 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 6ed7004d24994477c423665c03b2535a8126c1be
      https://github.com/openssl/openssl/commit/6ed7004d24994477c423665c03b2535a8126c1be
  Author: ndossche <niels.dossche at ugent.be>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M crypto/bio/bio_lib.c

  Log Message:
  -----------
  Fix incomplete BIO_dup_state() error check

BIO_dup_state() returns an error code <= 0 according to my analysis tool
and the documentation. Currently only == 0 is checked. Fix it by
changing the check condition.

CLA: trivial

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20194)

(cherry picked from commit 89601c72471a4b6bbb9e877f5c54f20eceba5f01)
(cherry picked from commit cf3cf2ba81f803f283f40ff93cb19d2b8142dacd)




More information about the openssl-commits mailing list