]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
ulogd: remove empty log-line
authorJeremy Sowden <jeremy@azazel.net>
Sun, 21 Nov 2021 20:41:36 +0000 (20:41 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 Nov 2021 13:24:53 +0000 (14:24 +0100)
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>
src/ulogd.c

index 9cd64e8e19b299f96e117a4beb40cda21d738625..a31b35592a87a133e864f0fbd54d142147e3fb85 100644 (file)
@@ -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;
        }