mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:29:08 +08:00
b89e291b45
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
14 lines
798 B
Diff
14 lines
798 B
Diff
diff --git a/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc b/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc
|
|
index 37a8f85cc5..b319f17aaf 100644
|
|
--- a/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc
|
|
+++ b/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc
|
|
@@ -224,7 +224,7 @@ class GrpcPolledFdWindows : public GrpcPolledFd {
|
|
// c-ares overloads this recv_from virtual socket function to receive
|
|
// data on both UDP and TCP sockets, and from is nullptr for TCP.
|
|
if (from != nullptr) {
|
|
- CHECK(*from_len <= recv_from_source_addr_len_);
|
|
+ CHECK(*from_len >= recv_from_source_addr_len_);
|
|
memcpy(from, &recv_from_source_addr_, recv_from_source_addr_len_);
|
|
*from_len = recv_from_source_addr_len_;
|
|
}
|