mirror of
https://github.com/moby/moby.git
synced 2026-08-03 06:30:59 +00:00
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>