summaryrefslogtreecommitdiffstats
path: root/src/ulogd.c
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2013-02-09 21:36:48 +0100
committerEric Leblond <eric@regit.org>2013-02-18 16:03:06 +0100
commit168fb53664894220e3344e4ec4e89f16e699a989 (patch)
treec5bf964c7dd96f1de4da0fc939780e23356c1d67 /src/ulogd.c
parentc9f381c03e022a4d468164b94f00ed78322b9e38 (diff)
Add handling of too long line and arguments.
When an argument or a line is too long, it can not be store into ulogd configuration and this must results in a error.
Diffstat (limited to 'src/ulogd.c')
-rw-r--r--src/ulogd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ulogd.c b/src/ulogd.c
index f8c8ed0..e09ba9e 100644
--- a/src/ulogd.c
+++ b/src/ulogd.c
@@ -989,6 +989,15 @@ static int parse_conffile(const char *section, struct config_keyset *ce)
ulogd_log(ULOGD_ERROR,
"section \"%s\" not found\n", section);
break;
+ case -ERRTOOLONG:
+ if (config_errce->key)
+ ulogd_log(ULOGD_ERROR,
+ "string value too long for key \"%s\"\n",
+ config_errce->key);
+ else
+ ulogd_log(ULOGD_ERROR,
+ "string value is too long\n");
+ break;
}
return 1;
}