From: Pablo Neira Ayuso Date: Mon, 18 Jul 2022 15:17:37 +0000 (+0200) Subject: cache: report an error message if cache initialization fails X-Git-Tag: v1.0.5~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2ddb38f7eb818312c50be78028bc35145c039ae;p=thirdparty%2Fnftables.git 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 --- 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; }