Module Name:    src
Committed By:   matt
Date:           Tue Apr 27 23:09:07 UTC 2010

Modified Files:
        src/sys/net [matt-nb5-mips64]: rtsock.c

Log Message:
Make sure each rt_msg has an aligned length.


To generate a diff of this commit:
cvs rdiff -u -r1.115.2.4 -r1.115.2.4.4.1 src/sys/net/rtsock.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.c
diff -u src/sys/net/rtsock.c:1.115.2.4 src/sys/net/rtsock.c:1.115.2.4.4.1
--- src/sys/net/rtsock.c:1.115.2.4	Fri Apr  3 17:59:03 2009
+++ src/sys/net/rtsock.c	Tue Apr 27 23:09:07 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: rtsock.c,v 1.115.2.4 2009/04/03 17:59:03 snj Exp $	*/
+/*	$NetBSD: rtsock.c,v 1.115.2.4.4.1 2010/04/27 23:09:07 matt Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.115.2.4 2009/04/03 17:59:03 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.115.2.4.4.1 2010/04/27 23:09:07 matt Exp $");
 
 #include "opt_inet.h"
 
@@ -702,6 +702,7 @@
 			}
 		}
 	}
+	len = ALIGN(len);
 	if (cp) {
 		struct rt_msghdr *rtm = (struct rt_msghdr *)cp0;
 

Reply via email to