From 56d318f825099f61370fc696c2a3e8f57bcf198c Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Fri, 16 Apr 2010 18:16:40 -0400 Subject: Add stub for validation of partition table file during config parsing Signed-off-by: Doug Ledford --- config.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index 3242f5f..b429968 100644 --- a/config.c +++ b/config.c @@ -903,6 +903,12 @@ void domainline(char *line) free_domain(de); return; } + if (de->handler->validate(de)) { + fprintf(stderr, Name ": partition table file failed " + "validation.\n"); + free_domain(de); + return; + } } de->next = domain_list; domain_list = de; -- cgit