aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport/chttp2
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-11-10 08:45:17 +0000
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-11-10 08:45:17 +0000
commit717805f5707295a8b873fac48bbc37f154f78e0e (patch)
treed7ba3e82eb071990ced5d222e74552c8abf81a44 /src/core/transport/chttp2
parente4008cf54478b227a508d22b6d45161de6b953d0 (diff)
Fix use-after-free
Diffstat (limited to 'src/core/transport/chttp2')
-rw-r--r--src/core/transport/chttp2/hpack_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/transport/chttp2/hpack_table.c b/src/core/transport/chttp2/hpack_table.c
index fde74b3acd..be18be748c 100644
--- a/src/core/transport/chttp2/hpack_table.c
+++ b/src/core/transport/chttp2/hpack_table.c
@@ -240,6 +240,7 @@ static void rebuild_ents(grpc_chttp2_hptbl *tbl, gpr_uint32 new_cap) {
ents[i] = tbl->ents[(tbl->first_ent + i) % tbl->cap_entries];
}
gpr_free(tbl->ents);
+ tbl->ents = ents;
tbl->cap_entries = new_cap;
tbl->first_ent = 0;
}