mirror of
https://github.com/fluencelabs/redis
synced 2025-07-03 02:41:33 +00:00
Don't segfault on unbalanced quotes.
This commit is contained in:
@ -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 */
|
||||||
|
Reference in New Issue
Block a user