summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_stp.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-09-30 17:51:55 +0200
committerPhil Sutter <phil@nwl.cc>2022-10-01 13:44:10 +0200
commitfca04aa7a53252464c289997e71de10189971da6 (patch)
tree9b0c503b13a67aea723736db0b310b760863a8e4 /extensions/libebt_stp.c
parenteafe731a50058ed59305ee4ab1ea2d63d6c4e86e (diff)
extensions: among: Fix for use with ebtables-restore
When restoring multiple rules which use among match, new size may be smaller than the old one which caused invalid writes by the memcpy() call. Expect this and realloc the match only if it needs to grow. Also use realloc instead of freeing and allocating from scratch. Fixes: 26753888720d8 ("nft: bridge: Rudimental among extension support") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libebt_stp.c')
0 files changed, 0 insertions, 0 deletions