Module Name:    src
Committed By:   maxv
Date:           Sat Feb 22 09:30:42 UTC 2020

Modified Files:
        src/sys/net: rtsock_shared.c

Log Message:
pass the address of the field, instead of relying on it being the first
field of the structure, no functional change


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/net/rtsock_shared.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/rtsock_shared.c
diff -u src/sys/net/rtsock_shared.c:1.14 src/sys/net/rtsock_shared.c:1.15
--- src/sys/net/rtsock_shared.c:1.14	Sun Feb  9 21:15:03 2020
+++ src/sys/net/rtsock_shared.c	Sat Feb 22 09:30:42 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: rtsock_shared.c,v 1.14 2020/02/09 21:15:03 roy Exp $	*/
+/*	$NetBSD: rtsock_shared.c,v 1.15 2020/02/22 09:30:42 maxv Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock_shared.c,v 1.14 2020/02/09 21:15:03 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock_shared.c,v 1.15 2020/02/22 09:30:42 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -248,7 +248,7 @@ COMPATNAME(route_filter)(struct mbuf *m,
 		    offsetof(struct sockaddr, sa_len) + sizeof(ss.ss_len))
 			return EINVAL;
 		m_copydata(m, sizeof(*rtm) + offsetof(struct sockaddr, sa_len),
-		    sizeof(ss.ss_len), &ss);
+		    sizeof(ss.ss_len), &ss.ss_len);
 		if (m->m_pkthdr.len < sizeof(*rtm) + ss.ss_len)
 			return EINVAL;
 		/* Copy out the destination sockaddr */

Reply via email to