forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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_; | ||
} | ||
diff --git a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc | ||
index ef70bfc5b6..e8b05452c7 100644 | ||
--- a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc | ||
+++ b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc | ||
@@ -73,7 +73,7 @@ namespace { | ||
// instantiated at the top of the virtual socket function callstack. | ||
class WSAErrorContext final { | ||
public: | ||
- explicit WSAErrorContext(){}; | ||
+ explicit WSAErrorContext() {}; | ||
|
||
~WSAErrorContext() { | ||
if (error_ != 0) { |