diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2020-06-24 15:30:00 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-07-01 12:54:50 +0200 |
commit | 7e28a82781379329a50c5340676bbf629d71dfd0 (patch) | |
tree | a816b226f690a6c1b5dbc134e8b49f969c20e574 /include | |
parent | 6c7c716bec3b3302c2212c9273c33f9640de8206 (diff) |
conntrack: Fix incorrect snprintf size calculation
The previous BUFFER_SIZE() call already updated the remaining 'len'. So
there is no need to subtract 'size' again. While this just makes the buffer
appear smaller than it is, which is mostly harmless, the subtraction might
underflow as 'size > len' is not checked like BUFFER_SIZE() does.
Signed-off-by: Daniel Gröber <dxld@darkboxed.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions