Commit Diff


commit - dac5c75ed0c009997c4b71cb83bfaebbfaff22f1
commit + 4264b841d71d67329a7bf291a2f6565fac246668
blob - 3d1986bb2cda3891bde5245bde2461c960e932e1
blob + ff7846b72bb4720eb8172eb46ef4b51f21df7f7c
--- lib/delta_cache.c
+++ 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);
 	}