[openssl-dev] [openssl.org #4068] Bug ocsp - bio_get_fd

Alessandro Ghedini via RT rt at openssl.org
Fri Oct 2 13:22:44 UTC 2015


On Fri, Oct 02, 2015 at 02:06:12am +0000, vince technical address via RT wrote:
> Hi,
> 
> Can you tell me why in the source file "ocsp.c" (apps directory), the test
> on the return of the function BIO_get_fd defines 0 as an invalid file
> descriptor?
> 
> if (BIO_get_fd (CBIO, & fd) <= 0)
> 
> should be
> 
> if (BIO_get_fd (CBIO, & fd) <0)

For reference, I opened a GitHub  pull request fixing this at:
https://github.com/openssl/openssl/pull/423

Cheers




More information about the openssl-dev mailing list