[master] 8989d79 use the check intended for this case (nit picking)
Nils Goroll
nils.goroll at uplex.de
Mon Jun 27 14:25:08 CEST 2016
commit 8989d79b4560036bc36825e9b9190ce47296cd01
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Jun 27 13:49:48 2016 +0200
use the check intended for this case (nit picking)
diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index 2cdb28c..d52b9fb 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -796,8 +796,7 @@ http_EstimateWS(const struct http *fm, unsigned how)
for (u = 0; u < fm->nhd; u++) {
if (u == HTTP_HDR_METHOD || u == HTTP_HDR_URL)
continue;
- AN(fm->hd[u].b);
- AN(fm->hd[u].e);
+ Tcheck(fm->hd[u]);
if (fm->hdf[u] & HDF_FILTER)
continue;
#define HTTPH(a, b, c) \
@@ -839,8 +838,7 @@ HTTP_Encode(const struct http *fm, uint8_t *p0, unsigned l, unsigned how)
for (u = 0; u < fm->nhd; u++) {
if (u == HTTP_HDR_METHOD || u == HTTP_HDR_URL)
continue;
- AN(fm->hd[u].b);
- AN(fm->hd[u].e);
+ Tcheck(fm->hd[u]);
if (fm->hdf[u] & HDF_FILTER)
continue;
#define HTTPH(a, b, c) \
More information about the varnish-commit
mailing list