Do not treat 0 return value from BIO_get_fd() as error
0 is a valid file descriptor. RT#4068 Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
dad0b512e6
commit
4428c7dba8
1 changed files with 1 additions and 1 deletions
|
@ -1202,7 +1202,7 @@ static OCSP_RESPONSE *query_responder(BIO *cbio, const char *host,
|
||||||
return NULL;
|
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");
|
BIO_puts(bio_err, "Can't get connection fd\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue