[master] 82328d2e4 gzip: Wrong incomplete claim

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Jun 26 09:25:07 UTC 2024


commit 82328d2e4a7987e58cbd6f4bfc8645c8af29cd7f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Nov 29 11:41:00 2022 +0100

    gzip: Wrong incomplete claim

diff --git a/bin/varnishd/cache/cache_gzip.c b/bin/varnishd/cache/cache_gzip.c
index 0b64c87f4..cce6332b4 100644
--- a/bin/varnishd/cache/cache_gzip.c
+++ b/bin/varnishd/cache/cache_gzip.c
@@ -264,7 +264,7 @@ VGZ_Gzip(struct vgz *vg, const void **pptr, ssize_t *plen, enum vgz_flag flags)
 	case VGZ_ALIGN:		zflg = Z_SYNC_FLUSH; break;
 	case VGZ_RESET:		zflg = Z_FULL_FLUSH; break;
 	case VGZ_FINISH:	zflg = Z_FINISH; break;
-	default:		INCOMPL();
+	default:		WRONG("Invalid VGZ flag");
 	}
 	i = deflate(&vg->vz, zflg);
 	if (i == Z_OK || i == Z_STREAM_END) {


More information about the varnish-commit mailing list