projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d43c00
)
Do not treat 0 return value from BIO_get_fd() as error
author
Alessandro Ghedini
<alessandro@ghedini.me>
Fri, 2 Oct 2015 13:16:08 +0000
(15:16 +0200)
committer
Richard Levitte
<levitte@openssl.org>
Fri, 23 Oct 2015 17:57:53 +0000
(19:57 +0200)
0 is a valid file descriptor.
RT#4068
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit
4428c7dba8f6f407d915c1226f4e0f673e8be241
)
apps/ocsp.c
patch
|
blob
|
history
diff --git
a/apps/ocsp.c
b/apps/ocsp.c
index 926083dd1b5cc19909a5ef8a6bc23e216783d9da..6ed255d4b5635ce6f11ac5d40f074025a1b216c9 100644
(file)
--- a/
apps/ocsp.c
+++ b/
apps/ocsp.c
@@
-1261,8
+1261,8
@@
static OCSP_RESPONSE *query_responder(BIO *err, BIO *cbio, const char *path,
return NULL;
}
- if (BIO_get_fd(cbio, &fd) <
=
0) {
- BIO_puts(err, "Can't get connection fd\n");
+ if (BIO_get_fd(cbio, &fd) < 0) {
+ BIO_puts(
bio_
err, "Can't get connection fd\n");
goto err;
}