summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-03-21 13:52:12 +0000
committerRichard Levitte <levitte@openssl.org>2005-03-21 13:52:12 +0000
commit9fc9b55237d3f8abb0f0efb2bf26bc58bcd234bb (patch)
tree8f7805f3429730d03944f4f388357189094245ea
parent689c6f25425a83f13745680a0a73ea7b730450a1 (diff)
There are cases when there are no files left to verify. Make sure to
handle that properly.
-rw-r--r--test/tverify.com9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/tverify.com b/test/tverify.com
index f97e71478f..2060184d1e 100644
--- a/test/tverify.com
+++ b/test/tverify.com
@@ -15,12 +15,15 @@ $ f = f$search("[-.certs]*.pem")
$ if f .nes. "" .and. f .nes. old_f
$ then
$ certs = certs + " [-.certs]" + f$parse(f,,,"NAME") + ".pem"
-$ if f$length(certs) .lt. 180 then goto loop_certs2
$ c := YES
+$ if f$length(certs) .lt. 180 then goto loop_certs2
$ endif
$ certs = certs - " "
$
-$ mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs'
-$ if c then goto loop_certs
+$ if c
+$ then
+$ mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs'
+$ goto loop_certs
+$ endif
$
$ delete certs.tmp;*