28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
From 932c8e83324d03b0088bf8aac2a584ca7b163f69 Mon Sep 17 00:00:00 2001
|
|
From: zhongtao <zhongtao17@huawei.com>
|
|
Date: Tue, 8 Aug 2023 15:08:45 +1400
|
|
Subject: [PATCH 05/11] bugfix for implicit_digest
|
|
|
|
Signed-off-by: zhongtao <zhongtao17@huawei.com>
|
|
---
|
|
src/daemon/modules/image/oci/storage/image_store/image_store.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/daemon/modules/image/oci/storage/image_store/image_store.c b/src/daemon/modules/image/oci/storage/image_store/image_store.c
|
|
index daf08c85..d1b7e402 100644
|
|
--- a/src/daemon/modules/image/oci/storage/image_store/image_store.c
|
|
+++ b/src/daemon/modules/image/oci/storage/image_store/image_store.c
|
|
@@ -2818,7 +2818,8 @@ static int implicit_digest(map_t *digests, image_t *img)
|
|
return 0;
|
|
}
|
|
|
|
- if (get_index_by_key((const char **)img->simage->big_data_digests->keys, img->simage->big_data_digests->len,
|
|
+ // Find whether the manifest in big_data_digests exists, if not, return 0 directly
|
|
+ if (!get_index_by_key((const char **)img->simage->big_data_digests->keys, img->simage->big_data_digests->len,
|
|
IMAGE_DIGEST_BIG_DATA_KEY, &index)) {
|
|
return 0;
|
|
}
|
|
--
|
|
2.25.1
|
|
|