Fix benign warning in clang analysis output.

This commit is contained in:
Milan Broz
2015-09-08 07:54:03 +02:00
parent 00f419e5ea
commit 2f964d95d8

View File

@@ -413,7 +413,8 @@ static int activate_luks_headers(struct reenc_ctx *rc)
pwd_old_len = 0;
pwd_new = rc->p[rc->keyslot].password;
pwd_new_len = rc->p[rc->keyslot].passwordLen;
}
} else
return -EINVAL;
if ((r = crypt_init(&cd, rc->header_file_org)) ||
(r = crypt_load(cd, CRYPT_LUKS1, NULL)) ||