Skip to content

Commit

Permalink
fix wrong buffer pool for write
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 13, 2024
1 parent 8ca1734 commit 413e4bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ww/devices/capture/capture_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static HTHREAD_ROUTINE(routineWriteToCapture) // NOLINT

nwrite = sendto(cdev->socket, ip_header, bufLen(buf), 0, (struct sockaddr *) (&to_addr), sizeof(to_addr));

reuseBuffer(cdev->reader_buffer_pool, buf);
reuseBuffer(cdev->writer_buffer_pool, buf);

if (nwrite < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion ww/devices/raw/raw_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static HTHREAD_ROUTINE(routineWriteToRaw) // NOLINT

nwrite = sendto(rdev->socket, ip_header, bufLen(buf), 0, (struct sockaddr *) (&to_addr), sizeof(to_addr));

reuseBuffer(rdev->reader_buffer_pool, buf);
reuseBuffer(rdev->writer_buffer_pool, buf);

if (nwrite < 0)
{
Expand Down

0 comments on commit 413e4bb

Please sign in to comment.