Skip to content

Commit 906fd95

Browse files
committed
* server/core.c (set_override): Catch errors returned by
set_allow_opts() for a parsing fail in an Options= argument. Submitted by: Zhou Qingyang <zhou1615 umn.edu> Github: closes #310 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917017 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7ab0b11 commit 906fd95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/core.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1906,8 +1906,10 @@ static const char *set_override(cmd_parms *cmd, void *d_, const char *l)
19061906
}
19071907
else if (!ap_cstr_casecmp(k, "Options")) {
19081908
d->override |= OR_OPTIONS;
1909-
if (v)
1910-
set_allow_opts(cmd, &(d->override_opts), v);
1909+
if (v) {
1910+
if ((err = set_allow_opts(cmd, &(d->override_opts), v)) != NULL)
1911+
return err;
1912+
}
19111913
else
19121914
d->override_opts = OPT_ALL;
19131915
}

0 commit comments

Comments
 (0)