]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
if _headers is NULL don't process If-Modified-Since
authorMark Andrews <marka@isc.org>
Tue, 1 May 2018 06:05:01 +0000 (16:05 +1000)
committerOndřej Surý <ondrej@isc.org>
Thu, 3 May 2018 15:08:59 +0000 (11:08 -0400)
bin/named/statschannel.c

index 8e89196fcfb39690f00939da7cad457736792348..47f7faa68becd0c6e4b96f5f06ac68e1ca6f27c3 100644 (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;