Skip to content

Commit

Permalink
shim: use try_into_u16_from_size instead generic helper
Browse files Browse the repository at this point in the history
fixes #520
  • Loading branch information
sreimers committed Sep 20, 2022
1 parent 493a985 commit f7dd19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shim/shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static bool shim_send_handler(int *err, struct mbuf *mb, void *arg)
return true;
}

err_len = try_into(len, mbuf_get_left(mb));
err_len = try_into_u16_from_size(&len, mbuf_get_left(mb));
if (err_len) {
DEBUG_WARNING("send: mbuf to big\n");
*err = err_len;
Expand Down

0 comments on commit f7dd19c

Please sign in to comment.