* [PATCH nft] cache: report an error message if cache initialization fails
@ 2022-07-18 15:21 Pablo Neira Ayuso
0 siblings, 0 replies; only message in thread
From: Pablo Neira Ayuso @ 2022-07-18 15:21 UTC (permalink / raw)
To: netfilter-devel
cache initialization failure (which should not ever happen) is not
reported to the user.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
src/cache.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/cache.c b/src/cache.c
index 2e1bcfcece57..da72dc909096 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -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;
}
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-18 15:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18 15:21 [PATCH nft] cache: report an error message if cache initialization fails Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).