]> git.ipfire.org Git - thirdparty/nftables.git/commit
erec: Sanitize erec location indesc
authorPhil Sutter <phil@nwl.cc>
Tue, 26 Jan 2021 17:52:15 +0000 (18:52 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 9 Feb 2021 16:00:09 +0000 (17:00 +0100)
commit2f89bc258e6e06ec4eeccc9efa52f01b4118e359
treed868a24ea6bbab3df1e87ddaaf6825bdc6794cd8
parent45f5a1f9786f8908f41fc4fd62b90688ec407a18
erec: Sanitize erec location indesc

erec_print() unconditionally dereferences erec->locations->indesc, so
make sure it is valid when either creating an erec or adding a location.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/erec.c