child-rekey: Suppress updown event when deleting redundant CHILD_SAs
[strongswan.git] / scripts / hash_burn.c
index 97eab0d..0aa9bf1 100644 (file)
@@ -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;