Avoid endless loops. Really, we were using the same variable for two
authorRichard Levitte <levitte@openssl.org>
Wed, 8 Jun 2005 21:59:47 +0000 (21:59 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 8 Jun 2005 21:59:47 +0000 (21:59 +0000)
different conditions...

test/tverify.com

index 2060184d1efc4e3ba9c27159efbe3c003ea2d382..021d701d79a9a11fd9428e487225e5b9602b4c4a 100644 (file)
@@ -8,22 +8,22 @@ $     copy/concatenate [-.certs]*.pem certs.tmp
 $
 $      old_f :=
 $ loop_certs:
-$      c := NO
+$      verify := NO
+$      more := YES
 $      certs :=
 $ loop_certs2:
 $      f = f$search("[-.certs]*.pem")
 $      if f .nes. "" .and. f .nes. old_f
 $      then
 $          certs = certs + " [-.certs]" + f$parse(f,,,"NAME") + ".pem"
-$          c := YES
+$          verify := YES
 $          if f$length(certs) .lt. 180 then goto loop_certs2
+$      else
+$          more := NO
 $      endif
 $      certs = certs - " "
 $
-$      if c
-$      then
-$          mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs'
-$          goto loop_certs
-$      endif
+$      if verify then mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs'
+$      if more then goto loop_certs
 $
 $      delete certs.tmp;*