Fixed NULL pointer issue

This commit is contained in:
Mark Riddoch 2013-09-25 16:36:54 +01:00
parent ed7c32fb88
commit 5d22884a9b

View File

@ -204,6 +204,7 @@ int error_count = 0;
obj->element = server_alloc(address, protocol, atoi(port));
else
{
obj->element = NULL;
skygw_log_write(LOGFILE_ERROR, "Server '%s' is missing a required configuration parameter. A server must have address, port and protocol defined.\n", obj->object);
error_count++;
}
@ -310,6 +311,7 @@ int error_count = 0;
}
else
{
obj->element = NULL;
skygw_log_write(LOGFILE_ERROR, "Monitor '%s' is missing a require module parameter.\n", obj->object);
error_count++;
}