summaryrefslogtreecommitdiff
path: root/src/configparser.y
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-11-21 08:14:04 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-11-23 08:44:48 -0500
commit3c92c959902c50f8ea6fa97d615a78e3ad60616c (patch)
treea7bf2cb5ce52128f7f7da8cc14bad1060c09b092 /src/configparser.y
parent3d3f1146c754b237df959fa68a72eced87c1c3df (diff)
downloadlighttpd-git-3c92c959902c50f8ea6fa97d615a78e3ad60616c.tar.gz
[core] fix crash for invalid lighttpd.conf (fixes #3175)
(thx dhjeong2) x-ref: "configuration parse bug" https://redmine.lighttpd.net/issues/3175
Diffstat (limited to 'src/configparser.y')
-rw-r--r--src/configparser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.y b/src/configparser.y
index a7277c9f..5e6e5530 100644
--- a/src/configparser.y
+++ b/src/configparser.y
@@ -737,7 +737,7 @@ context ::= DOLLAR SRVVARNAME(B) LBRACKET stringop(C) RBRACKET cond(E) expressio
B = NULL;
buffer_free(C);
C = NULL;
- D->fn->free(D);
+ if (D) D->fn->free(D);
D = NULL;
}