commit | 4428c7dba8f6f407d915c1226f4e0f673e8be241 | [log] [tgz] |
---|---|---|
author | Alessandro Ghedini <alessandro@ghedini.me> | Fri Oct 02 15:16:08 2015 +0200 |
committer | Richard Levitte <levitte@openssl.org> | Fri Oct 23 19:52:08 2015 +0200 |
tree | e0226d6f295f0405f327652d2d0aea6d2fe497eb | |
parent | dad0b512e649336440e2b3cc9d667c56d9a91eff [diff] [blame] |
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>
diff --git a/apps/ocsp.c b/apps/ocsp.c index 2ef4278..c599ffb 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c
@@ -1202,7 +1202,7 @@ 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; }