diff options
-rw-r--r-- | security/integrity/ima/ima_template_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c index 6d66ad6ed265..c2ba481f0f39 100644 --- a/security/integrity/ima/ima_template_lib.c +++ b/security/integrity/ima/ima_template_lib.c | |||
@@ -251,7 +251,7 @@ int ima_eventdigest_ng_init(struct integrity_iint_cache *iint, | |||
251 | struct evm_ima_xattr_data *xattr_value, | 251 | struct evm_ima_xattr_data *xattr_value, |
252 | int xattr_len, struct ima_field_data *field_data) | 252 | int xattr_len, struct ima_field_data *field_data) |
253 | { | 253 | { |
254 | u8 *cur_digest = NULL, hash_algo = HASH_ALGO__LAST; | 254 | u8 *cur_digest = NULL, hash_algo = HASH_ALGO_SHA1; |
255 | u32 cur_digestsize = 0; | 255 | u32 cur_digestsize = 0; |
256 | 256 | ||
257 | /* If iint is NULL, we are recording a violation. */ | 257 | /* If iint is NULL, we are recording a violation. */ |