diff options
author | Craig Tiller <ctiller@google.com> | 2016-06-10 23:38:07 +0000 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-06-10 23:38:07 +0000 |
commit | efa7d324174670de00b071bf979376bce8d62e38 (patch) | |
tree | 039e59198d089f12fa517cefb4aeae4fdad03019 /src/core | |
parent | 08f9a9bbf93cc4b1586167c49da17490cf7983e4 (diff) | |
parent | e4e865f0c08485d26562f91071169880b0feab4f (diff) |
Merge branch 'fuzzing-hell' into error
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ext/load_reporting/load_reporting.c | 3 |
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; |