diff options
author | laforge <laforge> | 2001-01-30 11:54:14 +0000 |
---|---|---|
committer | laforge <laforge> | 2001-01-30 11:54:14 +0000 |
commit | 0661cde6f2aaaa180cf4b7613d27ea5d0b160120 (patch) | |
tree | 6e2ebcd928d3c50a44f0d1b950bf3f79e5a7a0a4 /kernel | |
parent | 1cfa410e80de0676aff995848c421e820e2338fe (diff) |
null-terminate prefix if not used
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/ipt_ULOG.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/ipt_ULOG.c b/kernel/ipt_ULOG.c index 678ba5a..28adc2f 100644 --- a/kernel/ipt_ULOG.c +++ b/kernel/ipt_ULOG.c @@ -9,7 +9,7 @@ * * Released under the terms of the GPL * - * $Id: ipt_ULOG.c,v 1.6 2000/09/22 06:57:16 laforge Exp $ + * $Id: ipt_ULOG.c,v 1.7 2001/01/30 09:27:31 laforge Exp $ */ #include <linux/module.h> @@ -112,6 +112,8 @@ static unsigned int ipt_ulog_target(struct sk_buff **pskb, pm->hook = hooknum; if (loginfo->prefix[0] != '\0') strcpy(pm->prefix, loginfo->prefix); + else + *(pm->prefix) = '\0'; if (in && in->hard_header_len > 0 && (*pskb)->mac.raw != (void *) (*pskb)->nh.iph |