From: Pablo Neira Ayuso Date: Mon, 3 Jan 2022 18:11:38 +0000 (+0100) Subject: output: JSON: remove bogus check for host and port X-Git-Tag: ulogd-2.0.8~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a3eade859b49063447704a9a7344d49ded89626;p=thirdparty%2Fulogd2.git output: JSON: remove bogus check for host and port struct config_entry already provides storage for the host and port strings, .u.string is never NULL. Signed-off-by: Pablo Neira Ayuso --- diff --git a/output/ulogd_output_JSON.c b/output/ulogd_output_JSON.c index 83ad03e..bbc3dba 100644 --- a/output/ulogd_output_JSON.c +++ b/output/ulogd_output_JSON.c @@ -531,11 +531,6 @@ static int json_init_socket(struct ulogd_pluginstance *upi) { struct json_priv *op = (struct json_priv *) &upi->private; - if (host_ce(upi->config_kset).u.string == NULL) - return -1; - if (port_ce(upi->config_kset).u.string == NULL) - return -1; - if (op->mode == JSON_MODE_UNIX && validate_unix_socket(upi) < 0) return -1;