PR: 2170
authorDr. Stephen Henson <steve@openssl.org>
Fri, 12 Feb 2010 17:07:16 +0000 (17:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 12 Feb 2010 17:07:16 +0000 (17:07 +0000)
Submitted by: Magnus Lilja <lilja.magnus@gmail.com>

Make -c option in dgst work again.

apps/dgst.c

index 64fe56e..9bf38ce 100644 (file)
@@ -155,7 +155,7 @@ int MAIN(int argc, char **argv)
                if ((*argv)[0] != '-') break;
                if (strcmp(*argv,"-c") == 0)
                        separator=1;
-               if (strcmp(*argv,"-r") == 0)
+               else if (strcmp(*argv,"-r") == 0)
                        separator=2;
                else if (strcmp(*argv,"-rand") == 0)
                        {