Skip to content

Commit

Permalink
fix wrong offset
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Feb 26, 2025
1 parent c58ee26 commit 5f74137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/darwin/nw_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ static int s_socket_read_fn(struct aws_socket *socket, struct aws_byte_buf *read
read_node->region_offset,
read_node->current_region,
buffer, size);
if (read_node->current_region && read_node->current_region < offset) {
if (read_node->current_region && offset < read_node->current_region) {
AWS_LOGF_DEBUG(
AWS_LS_IO_SOCKET,
"id=%p handle=%p: dispatch_data_apply: skipped current region : %lu, looking for region: %lu",
Expand Down

0 comments on commit 5f74137

Please sign in to comment.