Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Use is_ktls function instead of ktls_available (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
baluchicken authored Apr 30, 2024
1 parent 597c115 commit deff17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ int camblet_recvmsg(struct sock *sock,
pr_warn("recvmsg copy_to_iter copied less than requested");
}

if (!(flags & MSG_PEEK) || ktls_available)
if (!(flags & MSG_PEEK) || is_ktls(s))
{
truncate_read_buffer(s, len);
}
Expand Down

0 comments on commit deff17d

Please sign in to comment.