if _headers is NULL don't process If-Modified-Since

This commit is contained in:
Mark Andrews
2018-05-01 16:05:01 +10:00
committed by Ondřej Surý
parent 8801c65a4b
commit 5613c3441f

View File

@@ -3122,6 +3122,10 @@ render_xsl(const char *url, isc_httpdurl_t *urlinfo,
const char *if_modified_since = "If-Modified-Since: ";
_headers = strdup(headers);
if (_headers == NULL) {
goto send;
}
saveptr = NULL;
for (line = strtok_r(_headers, "\n", &saveptr);
line;