From c5df0ad3b83907de341d300f8bcc00054262fe57 Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 3 Aug 2010 15:40:42 +0000 Subject: [PATCH] Properly set ifi_datalen for compat32 struct if_data32. PR: kern/149240 Submitted by: Stef Walter MFC after: 1 weeks --- sys/net/rtsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 009d2110c67a..ae72bd9bd89e 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1439,7 +1439,7 @@ copy_ifdata32(struct if_data *src, struct if_data32 *dst) CP(*src, *dst, ifi_addrlen); CP(*src, *dst, ifi_hdrlen); CP(*src, *dst, ifi_link_state); - CP(*src, *dst, ifi_datalen); + dst->ifi_datalen = sizeof(struct if_data32); CP(*src, *dst, ifi_mtu); CP(*src, *dst, ifi_metric); CP(*src, *dst, ifi_baudrate);