diff --git a/src/config.c b/src/config.c index 8040adc20..285a3f8dc 100644 --- a/src/config.c +++ b/src/config.c @@ -73,6 +73,10 @@ void loadServerConfigFromString(char *config) { /* Split into arguments */ argv = sdssplitargs(lines[i],&argc); + if (argv == NULL) { + err = "can't parse this line"; + goto loaderr; + } sdstolower(argv[0]); /* Execute config directives */