mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
[master] silence coverity warning
This commit is contained in:
parent
7f9f0b9755
commit
868b3166b8
@ -401,12 +401,13 @@ have_header(isc_httpd_t *httpd, const char *header, const char *value,
|
|||||||
if (cr != NULL && cr[1] == '\n')
|
if (cr != NULL && cr[1] == '\n')
|
||||||
cr++;
|
cr++;
|
||||||
nl = strchr(h, '\n');
|
nl = strchr(h, '\n');
|
||||||
|
|
||||||
/* last header? */
|
/* last header? */
|
||||||
if (cr == NULL && nl == NULL)
|
|
||||||
return(ISC_FALSE);
|
|
||||||
h = cr;
|
h = cr;
|
||||||
if (h == NULL || nl < h)
|
if (h == NULL || (nl != NULL && nl < h))
|
||||||
h = nl;
|
h = nl;
|
||||||
|
if (h == NULL)
|
||||||
|
return (ISC_FALSE);
|
||||||
h++;
|
h++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user