aboutsummaryrefslogtreecommitdiff
path: root/sys/netlink
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-06-05 19:16:53 +0000
committerEd Maste <emaste@FreeBSD.org>2026-06-08 19:51:35 +0000
commit888d9236e2249cb1bda686aca8729fdcc69a10ac (patch)
tree4501265ef3bb95392f61dfb417738d5192ecff89 /sys/netlink
parent0b269737f9ca057826a6c9376c2474b1ae5bc91c (diff)
Diffstat (limited to 'sys/netlink')
-rw-r--r--sys/netlink/netlink_io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netlink/netlink_io.c b/sys/netlink/netlink_io.c
index 9646eb2650d5..51c87d229717 100644
--- a/sys/netlink/netlink_io.c
+++ b/sys/netlink/netlink_io.c
@@ -345,9 +345,11 @@ nl_process_nbuf(struct nl_buf *nb, struct nlpcb *nlp)
};
for (; nb->offset + sizeof(struct nlmsghdr) <= nb->datalen;) {
+ u_int msglen;
+
hdr = (struct nlmsghdr *)&nb->data[nb->offset];
/* Save length prior to calling handler */
- int msglen = NLMSG_ALIGN(hdr->nlmsg_len);
+ msglen = NLMSG_ALIGN(hdr->nlmsg_len);
NL_LOG(LOG_DEBUG3, "parsing offset %d/%d",
nb->offset, nb->datalen);
npt_clear(&npt);