Commit 4264b841d71d67329a7bf291a2f6565fac246668

Stefan Sperling 2022-06-04T14:02:21

check the maximum cached delta size against the correct constant

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/delta_cache.c b/lib/delta_cache.c
index 3d1986b..ff7846b 100644
--- a/lib/delta_cache.c
+++ b/lib/delta_cache.c
@@ -196,7 +196,7 @@ got_delta_cache_add(struct got_delta_cache *cache,
 	struct got_delta_cache_head *head;
 	uint64_t idx;
 
-	if (delta_len > GOT_DELTA_RESULT_SIZE_CACHED_MAX) {
+	if (delta_len > GOT_DELTA_CACHE_MAX_DELTA_SIZE) {
 		cache->cache_toolarge++;
 		return got_error(GOT_ERR_NO_SPACE);
 	}