[openssl/openssl] a811b6: Fix incomplete error check on BIO_set_accept_name()
Niels Dossche
noreply at github.com
Wed Feb 8 14:39:24 UTC 2023
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: a811b6305b1f98e8ec66b8a426d359150fea69b2
https://github.com/openssl/openssl/commit/a811b6305b1f98e8ec66b8a426d359150fea69b2
Author: ndossche <niels.dossche at ugent.be>
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M crypto/bio/bss_acpt.c
Log Message:
-----------
Fix incomplete error check on BIO_set_accept_name()
BIO_set_accept_name() can return error values -1 and 0 according to
my analysis tool and the documentation. Documentation says a value of 1
indicates success. Currently, only an error value != 0 is checked which
erroneously interprets a -1 error return value as success.
Fix it by changing the check condition.
CLA: trivial
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20206)
More information about the openssl-commits
mailing list