From a2ddb38f7eb818312c50be78028bc35145c039ae Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 18 Jul 2022 17:17:37 +0200 Subject: cache: report an error message if cache initialization fails cache initialization failure (which should not ever happen) is not reported to the user. Signed-off-by: Pablo Neira Ayuso --- src/cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/cache.c b/src/cache.c index b61710b2..f790f995 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1181,7 +1181,11 @@ replay: goto replay; } + erec_queue(error(&netlink_location, "cache initialization failed: %s", + strerror(errno)), + msgs); nft_cache_release(cache); + return -1; } -- cgit v1.2.3