aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-06 14:24:59 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-06 14:24:59 -0700
commitd75415ccfd5277d27c222ddb27608c1acccaedac (patch)
tree488c5fd82bdbd4a012b9ea9694db5a568ca0d42c /src/core/lib/transport
parent33d87e3ffdedaef7c3d1a7a466d3a69fa51b23d1 (diff)
Fix assertion in debugging code
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r--src/core/lib/transport/metadata_batch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/transport/metadata_batch.cc b/src/core/lib/transport/metadata_batch.cc
index 304a5d510d..788681f006 100644
--- a/src/core/lib/transport/metadata_batch.cc
+++ b/src/core/lib/transport/metadata_batch.cc
@@ -134,7 +134,7 @@ static void assert_valid_list(grpc_mdelem_list* list) {
size_t verified_count = 0;
for (l = list->head; l; l = l->next) {
- GPR_ASSERT(!GRPC_MDISNULL(l->md));
+ GPR_ASSERT(is_mdelem_index_used(l->md_index) || !GRPC_MDISNULL(l->md));
GPR_ASSERT((l->prev == nullptr) == (l == list->head));
GPR_ASSERT((l->next == nullptr) == (l == list->tail));
if (l->next) GPR_ASSERT(l->next->prev == l);