diff options
-rw-r--r-- | env/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/env/common.c b/env/common.c index 8beb8e6aa4a..0ecdb248a08 100644 --- a/env/common.c +++ b/env/common.c @@ -353,6 +353,7 @@ int env_check_redund(const char *buf1, int buf1_read_fail, tmp_env2->crc; if (!crc1_ok && !crc2_ok) { + gd->env_valid = ENV_INVALID; return -ENOMSG; /* needed for env_load() */ } else if (crc1_ok && !crc2_ok) { gd->env_valid = ENV_VALID; |