[mod_deflate] null-check to quiet coverity warning

This commit is contained in:
Glenn Strauss 2018-09-25 20:24:19 -04:00
parent 7e20dc6a42
commit 070ce5b618
1 changed files with 1 additions and 0 deletions

View File

@ -1118,6 +1118,7 @@ CONNECTION_FUNC(mod_deflate_handle_response_start) {
etaglen = buffer_string_length(vb);
if (etaglen
&& con->http_status < 300 /*(want 2xx only)*/
&& NULL != if_none_match
&& 0 == strncmp(if_none_match->ptr, vb->ptr, etaglen-1)
&& if_none_match->ptr[etaglen-1] == '-'
&& 0 == strncmp(if_none_match->ptr+etaglen, label, strlen(label))) {