diff options
author | Yves-Alexis Perez <corsac@debian.org> | 2014-07-11 07:23:31 +0200 |
---|---|---|
committer | Yves-Alexis Perez <corsac@debian.org> | 2014-07-11 07:23:31 +0200 |
commit | 81c63b0eed39432878f78727f60a1e7499645199 (patch) | |
tree | 82387d8fecd1c20788fd8bd784a9b0bde091fb6b /scripts/hash_burn.c | |
parent | c5ebfc7b9c16551fe825dc1d79c3f7e2f096f6c9 (diff) | |
download | vyos-strongswan-81c63b0eed39432878f78727f60a1e7499645199.tar.gz vyos-strongswan-81c63b0eed39432878f78727f60a1e7499645199.zip |
Imported Upstream version 5.2.0
Diffstat (limited to 'scripts/hash_burn.c')
-rw-r--r-- | scripts/hash_burn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/hash_burn.c b/scripts/hash_burn.c index 97eab0d84..0aa9bf121 100644 --- a/scripts/hash_burn.c +++ b/scripts/hash_burn.c @@ -43,8 +43,7 @@ int main(int argc, char *argv[]) limit = atoi(argv[2]); } - alg = enum_from_name(hash_algorithm_short_names, argv[1]); - if (alg == -1) + if (!enum_from_name(hash_algorithm_short_names, argv[1], &alg)) { fprintf(stderr, "unknown hash algorthm: %s\n", argv[1]); return 1; |