Skip to content

Commit

Permalink
Merge pull request #1544 from eriksjolund/fix-recvfrom-error
Browse files Browse the repository at this point in the history
linux: fix recvfrom error handling
  • Loading branch information
giuseppe authored Sep 3, 2024
2 parents 04e09b0 + ab64a5c commit 0da87ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcrun/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -5545,8 +5545,7 @@ libcrun_configure_network (libcrun_container_t *container, libcrun_error_t *err)
/* The first 4 bytes in the data are the negative error code
in native endianness. */
errno = -(*(int32_t *) (buf + sizeof (struct nlmsghdr)));
if (UNLIKELY (errno < 0))
return crun_make_error (err, errno, "recvfrom(PF_NETLINK)");
return crun_make_error (err, errno, "recvfrom(PF_NETLINK)");
}
}

Expand Down

1 comment on commit 0da87ba

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.