diff options
author | Craig Tiller <ctiller@google.com> | 2017-05-23 22:15:05 +0000 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-05-23 22:15:05 +0000 |
commit | 091190ae243a8e0a09f4940fb12186e45f7740bb (patch) | |
tree | 37234e4a00339ee86ae6a206e6456f9b4097db68 /src/core/lib/iomgr | |
parent | 32726128e96a116d3b2a7fbf5a2f212d0e406f52 (diff) |
UBSAN fix
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/ev_epollex_linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/ev_epollex_linux.c b/src/core/lib/iomgr/ev_epollex_linux.c index 2d731574d2..11f0135bfd 100644 --- a/src/core/lib/iomgr/ev_epollex_linux.c +++ b/src/core/lib/iomgr/ev_epollex_linux.c @@ -529,6 +529,7 @@ static void fd_invoke_workqueue(grpc_exec_ctx *exec_ctx, grpc_fd *fd) { } static grpc_closure_scheduler *workqueue_scheduler(grpc_workqueue *workqueue) { + if (workqueue == NULL) return NULL; return &((grpc_fd *)workqueue)->workqueue_scheduler; } |