[master] ef1073f30 flexelint/polish 1df203a7574b4c6f6853f94c1e80da70a7af7849

Nils Goroll nils.goroll at uplex.de
Mon Mar 29 14:50:05 UTC 2021


commit ef1073f309bc5ad324e8225d50974f2f8d6b3a4f
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Mar 29 16:49:08 2021 +0200

    flexelint/polish 1df203a7574b4c6f6853f94c1e80da70a7af7849

diff --git a/bin/varnishd/storage/storage_simple.c b/bin/varnishd/storage/storage_simple.c
index 62d03f638..1b94bb37e 100644
--- a/bin/varnishd/storage/storage_simple.c
+++ b/bin/varnishd/storage/storage_simple.c
@@ -280,8 +280,11 @@ sml_iterator(struct worker *wrk, struct objcore *oc,
 	l = 0;
 
 	u = 0;
-	if (boc->len_so_far == 0)
-		func(priv, OBJ_ITER_FLUSH, NULL, 0);
+	if (boc->len_so_far == 0) {
+		ret = func(priv, OBJ_ITER_FLUSH, NULL, 0);
+		if (ret)
+			return (ret);
+	}
 	while (1) {
 		ol = len;
 		nl = ObjWaitExtend(wrk, oc, ol);


More information about the varnish-commit mailing list