Skip to contentSkip to conversation

cache: report an error message if cache initialization fails

PATCH New Pablo Neira Ayuso 1 participant 1 message Jul 18, 2022 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 cache: report an error message if cache initialization fails

cache initialization failure (which should not ever happen) is not reported to the user.

---
 src/cache.c | 4 ++++
 1 file changed, 4 insertions(+)
src/cache.c +4 -0
index 2e1bcfcece57..da72dc909096 100644
@@ -1180,7 +1180,11 @@ replay:
 			goto replay;
 		}
 
+		erec_queue(error(&netlink_location, "cache initialization failed: %s",
+				 strerror(errno)),
+			   msgs);
 		nft_cache_release(cache);
+
 		return -1;
 	}
 
Signature · 1 line
2.30.2