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 64fe56e5180893c49c76447deb024d6593d223e6..9bf38ce73b7ee9110fee01ea264febb7fbf2104e 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)
                        {