]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-restore: Avoid access of uninitialized data
authorPhil Sutter <phil@nwl.cc>
Thu, 5 Dec 2019 10:40:26 +0000 (11:40 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 6 Dec 2019 11:12:08 +0000 (12:12 +0100)
commit48be21bf39f9af35d53af0e211cbd50dcfd12d08
treed9dfd06587591b1ec505f4d1ffcef1e04996f460
parentb45b4e390341404ca019f7a0361fbbee748715a8
xtables-restore: Avoid access of uninitialized data

When flushing, 'buffer' is not written to prior to checking its first
byte's value. Therefore it needs to be initialized upon declaration.

Fixes: 09cb517949e69 ("xtables-restore: Improve performance of --noflush operation")
iptables/xtables-restore.c