Skip to content

Commit 6c9c0ce

Browse files
daantimmerandreasbuhr
authored andcommitted
add missing captures
1 parent 037a319 commit 6c9c0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/socket_send_to_operation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ bool cppcoro::net::socket_send_to_operation_impl::try_start(
8181
sockaddr_storage destinationAddress = {0};
8282
const socklen_t destinationLength = detail::ip_endpoint_to_sockaddr(
8383
m_destination, std::ref(destinationAddress));
84-
operation.m_completeFunc = [operation, this]() {
84+
operation.m_completeFunc = [operation, destinationAddress, destinationLength, this]() {
8585
int res = sendto(
8686
m_socket.native_handle(), m_buffer, m_byteCount, 0,
8787
reinterpret_cast<const sockaddr*>(&destinationAddress),

0 commit comments

Comments
 (0)