diff --git a/apps/ocsp.c b/apps/ocsp.c index 2ef42789e6eb8cfbdfbcd419a886d37bf9ef4c48..c599ffbd4f59cde611f279620e96db02cb143d65 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1202,7 +1202,7 @@ static OCSP_RESPONSE *query_responder(BIO *cbio, const char *host, return NULL; } - if (BIO_get_fd(cbio, &fd) <= 0) { + if (BIO_get_fd(cbio, &fd) < 0) { BIO_puts(bio_err, "Can't get connection fd\n"); goto err; }