struct config_entry already provides storage for the host and port strings, .u.string is never NULL. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- output/ulogd_output_JSON.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/output/ulogd_output_JSON.c b/output/ulogd_output_JSON.c index 83ad03efa145..bbc3dba5d41a 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; -- 2.30.2