Skip to content

Commit

Permalink
Fix Secure Tuneling Exceptions (#595)
Browse files Browse the repository at this point in the history
* update PR#594

* clang-format
  • Loading branch information
xiazhvera authored Jun 21, 2023
1 parent b126560 commit 0876edb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions secure_tunneling/source/SecureTunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ namespace Aws
clientBootstrap,
socketOptions,
accessToken,
nullptr,
"",
localProxyMode,
endpointHost,
nullptr,
Expand Down Expand Up @@ -688,7 +688,7 @@ namespace Aws
Crt::ApiHandle::GetOrCreateStaticDefaultClientBootstrap(),
socketOptions,
accessToken,
nullptr,
"",
localProxyMode,
endpointHost,
nullptr,
Expand Down Expand Up @@ -973,10 +973,10 @@ namespace Aws
*/
struct aws_byte_buf payload_buf;
AWS_ZERO_STRUCT(payload_buf);
payload_buf.allocator = NULL;
payload_buf.buffer = message->payload->ptr;
payload_buf.len = message->payload->len;
aws_byte_buf_init_copy_from_cursor(
&payload_buf, secureTunnel->m_allocator, *(message->payload));
secureTunnel->m_OnDataReceive(payload_buf);
aws_byte_buf_clean_up(&payload_buf);
return;
}
}
Expand Down

0 comments on commit 0876edb

Please sign in to comment.