]> git.ipfire.org Git - thirdparty/nftables.git/commit
erec: Avoid passing negative offset to fseek()
authorPhil Sutter <phil@nwl.cc>
Thu, 1 Mar 2018 14:00:28 +0000 (15:00 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 2 Mar 2018 10:46:56 +0000 (11:46 +0100)
commit3570b6bc8b4f136d07121b28cd79b6356e8e969b
tree60e91fd2423286d06e8184906287129ba93b781b
parentf51ed1db70abdbb909e81bc670ffdfa05f421257
erec: Avoid passing negative offset to fseek()

If the initial call to ftell() fails, variable orig_offset is set to -1.
Avoid passing this to fseek() later on.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/erec.c