diff options
-rw-r--r-- | config.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -132,6 +132,12 @@ int config_read(char* cfg_file){ goto bail; } + //validate instance name + if(strchr(separator, ' ') || strchr(separator, '.')){ + fprintf(stderr, "Invalid instance name %s\n", separator); + goto bail; + } + current_instance = current_backend->create(); if(!current_instance){ fprintf(stderr, "Failed to instantiate backend %s\n", line); |