[master] b2005c0fa vrt: Ignore HSH_DerefObjCore(bereq) return value

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Jun 7 15:37:06 UTC 2023


commit b2005c0fa70f5d7564b7bd6c2eb816be72a4c31e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Jun 7 17:34:01 2023 +0200

    vrt: Ignore HSH_DerefObjCore(bereq) return value
    
    Spotted by Coverity Scan.
    
    Refs #3914

diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 1ec09a74c..8810fcc51 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -614,7 +614,7 @@ VRT_u_bereq_body(VRT_CTX)
 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
 	CHECK_OBJ_NOTNULL(ctx->bo, BUSYOBJ_MAGIC);
 	if (ctx->bo->bereq_body != NULL) {
-		HSH_DerefObjCore(ctx->bo->wrk, &ctx->bo->bereq_body, 0);
+		(void)HSH_DerefObjCore(ctx->bo->wrk, &ctx->bo->bereq_body, 0);
 		http_Unset(ctx->bo->bereq, H_Content_Length);
 	}
 


More information about the varnish-commit mailing list