summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-01-13 17:09:53 +0100
committerPhil Sutter <phil@nwl.cc>2023-01-13 17:11:18 +0100
commitd4d47e5bdf943be494aeb5d5a29b8f5212acbddf (patch)
treeb80274d7d60010df6b8bba6a9b32d863ad5126a7 /src/netlink.c
parentb83a0416cdc881c6ac35739cd858e4fe5fb2e04f (diff)
optimize: Do not return garbage from stack
If input does not contain a single 'add' command (unusual, but possible), 'ret' value was not initialized by nft_optimize() before returning its value. Fixes: fb298877ece27 ("src: add ruleset optimization infrastructure") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/netlink.c')
0 files changed, 0 insertions, 0 deletions