Module Name: src
Committed By: maxv
Date: Thu May 31 15:41:11 UTC 2018
Modified Files:
src/sys/compat/svr4: svr4_stream.c
Log Message:
Add XXX for NULL deref. Not sure how to fix it, not sure we care either...
To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/compat/svr4/svr4_stream.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/compat/svr4/svr4_stream.c
diff -u src/sys/compat/svr4/svr4_stream.c:1.93 src/sys/compat/svr4/svr4_stream.c:1.94
--- src/sys/compat/svr4/svr4_stream.c:1.93 Sat May 5 02:09:40 2018
+++ src/sys/compat/svr4/svr4_stream.c Thu May 31 15:41:11 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_stream.c,v 1.93 2018/05/05 02:09:40 christos Exp $ */
+/* $NetBSD: svr4_stream.c,v 1.94 2018/05/31 15:41:11 maxv Exp $ */
/*-
* Copyright (c) 1994, 2008 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_stream.c,v 1.93 2018/05/05 02:09:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_stream.c,v 1.94 2018/05/31 15:41:11 maxv Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -1791,6 +1791,10 @@ svr4_sys_getmsg(struct lwp *l, const str
sc.cmd = SVR4_TI_RECVFROM_IND;
+ /*
+ * XXX: name = NULL?
+ */
+
switch (st->s_family) {
case AF_INET:
sc.len = sizeof (struct sockaddr_in);