aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-23 15:43:22 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-06-23 15:43:22 -0700
commit98d31d1a40fe0d320f2488794d97a0bad5a8060d (patch)
treede34d8e5e8fc7b90be24b04c4f6fb84f464ab658 /src/core/lib/iomgr
parentd4d4c6f6f62a547da9136f57ddd6406facaf4ce5 (diff)
Fix special value lookup
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/error.c3
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;
}