diff options
author | Craig Tiller <ctiller@google.com> | 2016-06-23 15:43:22 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-06-23 15:43:22 -0700 |
commit | 98d31d1a40fe0d320f2488794d97a0bad5a8060d (patch) | |
tree | de34d8e5e8fc7b90be24b04c4f6fb84f464ab658 /src/core/lib | |
parent | d4d4c6f6f62a547da9136f57ddd6406facaf4ce5 (diff) |
Fix special value lookup
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/iomgr/error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/error.c b/src/core/lib/iomgr/error.c index da0d697236..9f5ba76fd6 100644 --- a/src/core/lib/iomgr/error.c +++ b/src/core/lib/iomgr/error.c @@ -276,7 +276,8 @@ bool grpc_error_get_int(grpc_error *err, grpc_error_ints which, intptr_t *p) { void *pp; if (is_special(err)) { if (err == GRPC_ERROR_CANCELLED && which == GRPC_ERROR_INT_GRPC_STATUS) { - return GRPC_STATUS_CANCELLED; + *p = GRPC_STATUS_CANCELLED; + return true; } return false; } |