From 5e5334c17b43555145231b543589fcfcd0c0ed57 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: May 04 2010 20:50:42 +0000 Subject: - properly handle the case where neither the certmaster nor minion configuration files are available (#588932) --- diff --git a/src/certmaster.c b/src/certmaster.c index 6600204..0b2979d 100644 --- a/src/certmaster.c +++ b/src/certmaster.c @@ -98,8 +98,9 @@ main(int argc, char **argv) /* Hope the minion is configured. */ config = read_config_file("/etc/certmaster/" "minion.conf"); - host = get_config_entry(config, "main", "certmaster"); if (config != NULL) { + host = get_config_entry(config, + "main", "certmaster"); port = get_config_entry(config, "main", "certmaster_port");