Message ID | 20241106234625.168468-4-pablo@netfilter.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 544dded8cb6317c2d3ecf4bba8412e616e70bb86 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,01/11] netfilter: Make legacy configs user selectable | expand |
diff --git a/net/bridge/netfilter/nft_meta_bridge.c b/net/bridge/netfilter/nft_meta_bridge.c index d12a221366d6..5adced1e7d0c 100644 --- a/net/bridge/netfilter/nft_meta_bridge.c +++ b/net/bridge/netfilter/nft_meta_bridge.c @@ -63,7 +63,7 @@ static void nft_meta_bridge_get_eval(const struct nft_expr *expr, return nft_meta_get_eval(expr, regs, pkt); } - strncpy((char *)dest, br_dev ? br_dev->name : "", IFNAMSIZ); + strscpy_pad((char *)dest, br_dev ? br_dev->name : "", IFNAMSIZ); return; err: regs->verdict.code = NFT_BREAK;