return MOSQ_ERR_INVAL if config has invalid boolean value

Signed-off-by: Vinod Kumar <kumar003vinod@gmail.com>
pull/977/head
Vinod Kumar 7 years ago committed by Roger Light
parent 9200a8e98b
commit e492a61cd8

@ -2126,6 +2126,7 @@ static int conf__parse_bool(char **token, const char *name, bool *value, char *s
*value = true;
}else{
log__printf(NULL, MOSQ_LOG_ERR, "Error: Invalid %s value (%s).", name, *token);
return MOSQ_ERR_INVAL;
}
}else{
log__printf(NULL, MOSQ_LOG_ERR, "Error: Empty %s value in configuration.", name);

Loading…
Cancel
Save