[master] 4830ec8 Check HPK_ResizeTbl return
Guillaume Quintard
guillaume at varnish-software.com
Thu Sep 8 12:22:12 CEST 2016
commit 4830ec8abec12e0b1357080e650b55550d553d34
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Thu Sep 8 12:10:45 2016 +0200
Check HPK_ResizeTbl return
diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index 62a1243..4b1f549 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -588,6 +588,7 @@ parse_settings(const struct stream *s, struct frame *f)
struct http *hp;
int i, t, v;
const char *buf;
+ enum hpk_result r;
CHECK_OBJ_NOTNULL(f, FRAME_MAGIC);
CHECK_OBJ_NOTNULL(s, STREAM_MAGIC);
CAST_OBJ_NOTNULL(hp, s->hp, HTTP_MAGIC);;
@@ -609,8 +610,10 @@ parse_settings(const struct stream *s, struct frame *f)
buf = "unknown";
i += 4;
- if (t == 1 )
- HPK_ResizeTbl(s->hp->encctx, v);
+ if (t == 1 ) {
+ r = HPK_ResizeTbl(s->hp->encctx, v);
+ assert(r == hpk_done);
+ }
vtc_log(hp->vl, 4, "settings->%s (%d): %d", buf, t, v);
}
More information about the varnish-commit
mailing list