1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

fix handling of an unknown progeam name

Noticed by:	Joshua Goodall <joshua@roughtrade.net>
Approved by:	ru
This commit is contained in:
Oliver Eikemeier 2004-06-22 09:18:50 +00:00
parent fbb45f8cbc
commit 7b89c134f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130918

View File

@ -127,7 +127,7 @@ main(int argc, char *argv[])
if (strcasecmp(Algorithm[digest].progname, progname) == 0)
break;
if (Algorithm[digest].progname == NULL)
if (digest == sizeof(Algorithm)/sizeof(*Algorithm))
digest = 0;
failed = 0;