Files
Cory Snider fc2f56702d d/libn/i/nftables: reject Apply on a closed nft_ctx
Close() frees the libnftables context and nils out the handle, so passing
a closed nftCtx to Apply() would hand a nil pointer to libnftables and
crash the daemon.

No caller can do that today: table.nftApply() nil-checks its *nftCtx and
creates a new context when it has been closed, and RunCmd() owns its
context for the duration of a single call. Return an error anyway, rather
than depending on every future caller to get the lifecycle right.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Cory Snider <csnider@mirantis.com>
2026-07-29 20:41:59 -04:00
..
2025-12-15 18:56:34 +01:00
2025-08-01 00:49:22 +02:00
2025-08-01 00:49:22 +02:00
2025-08-01 00:49:22 +02:00
2025-08-01 00:49:22 +02:00