diff options
author | eik <eik@FreeBSD.org> | 2004-06-22 09:18:50 +0000 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-06-22 09:18:50 +0000 |
commit | 65e528a8ff1369c768af8e0bdc4796d09fa3215e (patch) | |
tree | 05324888070142a2429e4d15d0553bb4a12a665e /sbin/md5 | |
parent | 2cc50c54dbd47fcc321051f173bc63581ec1cf60 (diff) | |
download | FreeBSD-src-65e528a8ff1369c768af8e0bdc4796d09fa3215e.zip FreeBSD-src-65e528a8ff1369c768af8e0bdc4796d09fa3215e.tar.gz |
fix handling of an unknown progeam name
Noticed by: Joshua Goodall <joshua@roughtrade.net>
Approved by: ru
Diffstat (limited to 'sbin/md5')
-rw-r--r-- | sbin/md5/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index 8672d3f..454ada8 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -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; |