summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-02-03 11:37:50 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-02-03 11:37:50 +0000
commit8d5623ed1febec3e3e368e4962f75aefb44f9db9 (patch)
tree3c8411bedb56fbea884265b4e1ce6decfa9e4701 /filter
parent355521a260ea0f4711c3d8e1ed095142651f895a (diff)
From: Eric Leblond <eric@inl.fr>:
Added explicit null termination of the hostname buffer This patch is a backport of Marius Tomaschewski <mt@suse.de> work on ulogd.
Diffstat (limited to 'filter')
-rw-r--r--filter/raw2packet/ulogd_raw2packet_LOCAL.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/raw2packet/ulogd_raw2packet_LOCAL.c b/filter/raw2packet/ulogd_raw2packet_LOCAL.c
index 41ebe5b..bf400d7 100644
--- a/filter/raw2packet/ulogd_raw2packet_LOCAL.c
+++ b/filter/raw2packet/ulogd_raw2packet_LOCAL.c
@@ -92,6 +92,7 @@ void _init(void)
strerror(errno));
exit(2);
}
+ hostname[sizeof(hostname)-1] = '\0';
/* strip off everything after first '.' */
if ((tmp = strchr(hostname, '.')))
*tmp = '\0';