aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/load_reporting
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-10 00:29:59 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-06-10 00:29:59 -0700
commite4e865f0c08485d26562f91071169880b0feab4f (patch)
tree7500fea5fc26cf96e0bdab210f6471ef24c85d9c /src/core/ext/load_reporting
parent698d3e91ff42db3fe640cc369e8edf85abc5343d (diff)
Fix fuzzing detected bug
Diffstat (limited to 'src/core/ext/load_reporting')
-rw-r--r--src/core/ext/load_reporting/load_reporting.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ext/load_reporting/load_reporting.c b/src/core/ext/load_reporting/load_reporting.c
index 60082dbaaa..9e4d32676f 100644
--- a/src/core/ext/load_reporting/load_reporting.c
+++ b/src/core/ext/load_reporting/load_reporting.c
@@ -76,7 +76,8 @@ static bool is_load_reporting_enabled(const grpc_channel_args *a) {
if (a == NULL) return false;
for (size_t i = 0; i < a->num_args; i++) {
if (0 == strcmp(a->args[i].key, GRPC_ARG_ENABLE_LOAD_REPORTING)) {
- return a->args[i].value.pointer.p != NULL;
+ return a->args[i].type == GRPC_ARG_POINTER &&
+ a->args[i].value.pointer.p != NULL;
}
}
return false;