Skip to content

Commit 676c2c1

Browse files
committed
linux: fix array bounds warning in libcrun_configure_network
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent d8a88c0 commit 676c2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5903,7 +5903,7 @@ libcrun_configure_network (libcrun_container_t *container, libcrun_error_t *err)
59035903
else
59045904
{
59055905
struct nlmsghdr *hdr_recv;
5906-
char buf[sizeof (struct nlmsghdr) + sizeof (struct ifinfomsg)];
5906+
char buf[sizeof (struct nlmsghdr) + sizeof (struct nlmsgerr)];
59075907
struct sockaddr_nl addr = {
59085908
.nl_family = AF_NETLINK,
59095909
.nl_pid = getpid (),

0 commit comments

Comments
 (0)