Commit e1742903 authored by charsyam's avatar charsyam Committed by antirez
Browse files

Don't segfault on unbalanced quotes.

parent a3273dbf
...@@ -73,6 +73,10 @@ void loadServerConfigFromString(char *config) { ...@@ -73,6 +73,10 @@ void loadServerConfigFromString(char *config) {
/* Split into arguments */ /* Split into arguments */
argv = sdssplitargs(lines[i],&argc); argv = sdssplitargs(lines[i],&argc);
if (argv == NULL) {
err = "can't parse this line";
goto loaderr;
}
sdstolower(argv[0]); sdstolower(argv[0]);
/* Execute config directives */ /* Execute config directives */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment