diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2021-11-30 10:55:35 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-30 20:55:17 +0100 |
commit | ae3d0f59e2d1962d2a8f97dfb3e05b32ca11ea82 (patch) | |
tree | 718068595e681e0aced7fb6182ea8b054e4e600c /include/ulogd/ulogd.h | |
parent | 721aa6f74f17f56dd82873aefffb2d6683918b79 (diff) |
filter: PWSNIFF: replace malloc+strncpy with strndup
There are a couple of instances of allocating memory with `malloc`,
followed by copying a string to it with `strncpy` and adding an explicit
assignment of `\0` to terminate the string. Replace them with
`strndup`.
Add an enum to name indices of output keys.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/ulogd/ulogd.h')
0 files changed, 0 insertions, 0 deletions