diff --git a/src/hci/commands/digest_cmd.c b/src/hci/commands/digest_cmd.c index 47a7339f1..20d33a5d8 100644 --- a/src/hci/commands/digest_cmd.c +++ b/src/hci/commands/digest_cmd.c @@ -86,7 +86,7 @@ int digest_exec ( int argc, char **argv, struct digest_algorithm *digest ) { /* Acquire image */ if ( ( rc = imgacquire ( argv[i], 0, &image ) ) != 0 ) - continue; + return rc; /* Calculate digest */ digest_init ( digest, ctx );