Skip to content

Commit

Permalink
test/bind-listen: fix incorrect io_uring_prep_recv buflen
Browse files Browse the repository at this point in the history
buf is sized 1024 bytes, not BUFSIZ.

Signed-off-by: David Disseldorp <ddiss@suse.de>
  • Loading branch information
ddiss committed Oct 3, 2024
1 parent 352c8ab commit 6f310e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bind-listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static int test_good_server(unsigned int ring_flags)
io_uring_cqe_seen(&ring, cqe);

sqe = io_uring_get_sqe(&ring);
io_uring_prep_recv(sqe, CONN_INDEX, buf, BUFSIZ, 0);
io_uring_prep_recv(sqe, CONN_INDEX, buf, sizeof(buf), 0);
sqe->flags |= IOSQE_FIXED_FILE;

io_uring_submit(&ring);
Expand Down

0 comments on commit 6f310e3

Please sign in to comment.