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:
902c6b9
)
RT3962: Check accept_count only if not unlimited
author
Adam Eijdenberg
<eijdenberg@google.com>
Thu, 30 Jul 2015 01:38:22 +0000
(21:38 -0400)
committer
Rich Salz
<rsalz@openssl.org>
Fri, 31 Jul 2015 15:13:58 +0000
(11:13 -0400)
Reviewed-by: Matt Caswell <matt@openssl.org>
apps/ocsp.c
patch
|
blob
|
history
diff --git
a/apps/ocsp.c
b/apps/ocsp.c
index b6397b8f77dcbfc073c36491444624942047d664..44f5841fff5c4e2b71b925fa4dc63fd786554b54 100644
(file)
--- a/
apps/ocsp.c
+++ b/
apps/ocsp.c
@@
-666,7
+666,8
@@
int ocsp_main(int argc, char **argv)
/* If running as responder don't verify our own response */
if (cbio) {
- if (--accept_count <= 0) {
+ /* If not unlimited, see if we took all we should. */
+ if (accept_count != -1 && --accept_count <= 0) {
ret = 0;
goto end;
}