diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2021-11-21 20:41:36 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-23 14:24:53 +0100 |
commit | a59912ecc812b00fe14c8a571a1683f154fd4d94 (patch) | |
tree | 81215883183e4b4cfd6b6d8f895731eaf7ee8071 /src | |
parent | 2bbccbe70eec3a0503bee6cde76d8349fd8f675e (diff) |
ulogd: remove empty log-line
There is a `strdup` at the beginning of `create_stack`. If it fails, an
empty log-line is printed. It's not useful, so remove it. This is
consistent with the error-handling of the `malloc` which immediately
follows it.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ulogd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ulogd.c b/src/ulogd.c index 9cd64e8..a31b355 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -965,7 +965,6 @@ static int create_stack(const char *option) load_all_plugins(); if (!buf) { - ulogd_log(ULOGD_ERROR, ""); ret = -ENOMEM; goto out_buf; } |