path: root/output/ulogd_output_SYSLOG.c
diff options
authorHolger Eitzenberger <>2009-10-08 22:20:02 +0200
committerHarald Welte <>2010-10-21 19:15:36 +0200
commiteeef45a47330a67fadb155c9fec985da98305215 (patch)
treef176f3c6cd7b673a95c95533e4b720254b14dbd4 /output/ulogd_output_SYSLOG.c
parent05d28f46d0ff183615b6af29735d6bfc4df909aa (diff)
Fix key check by removing key.source overlay
The key check failed after introducing ulogd_key and more importantly by moving key.type to ulogd_value. Because of the overlay of key.u.source and key.u.val this broke the key check in stack_resolve_keys(), because the value.type was already set then. Fix it by removing this overlay (remove that union). This increases the ulogd_key size by 4 bytes, which is not a problem at all. Signed-off-by: Holger Eitzenberger <>
Diffstat (limited to 'output/ulogd_output_SYSLOG.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/output/ulogd_output_SYSLOG.c b/output/ulogd_output_SYSLOG.c
index eed5b2f..591391b 100644
--- a/output/ulogd_output_SYSLOG.c
+++ b/output/ulogd_output_SYSLOG.c
@@ -51,7 +51,7 @@ static int syslog_interp(struct ulogd_pluginstance *upi, unsigned *flags)
struct syslog_instance *li = upi_priv(upi);
struct ulogd_key *res = upi->input.keys;
- if (res[0].u.source->flags & ULOGD_RETF_VALID)
+ if (res[0].source->flags & ULOGD_RETF_VALID)
syslog(li->level | li->facility, "%s", key_str(&res[0]));
return 0;