artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b594b4
)
Assign NULL instead of 0 to `control' within sendit(). It's mbuf(9)
author
mvs
<mvs@openbsd.org>
Thu, 13 May 2021 17:31:59 +0000
(17:31 +0000)
committer
mvs
<mvs@openbsd.org>
Thu, 13 May 2021 17:31:59 +0000
(17:31 +0000)
pointer.
ok deraadt@
sys/kern/uipc_syscalls.c
patch
|
blob
|
history
diff --git
a/sys/kern/uipc_syscalls.c
b/sys/kern/uipc_syscalls.c
index
4d332ea
..
67b9baf
100644
(file)
--- a/
sys/kern/uipc_syscalls.c
+++ b/
sys/kern/uipc_syscalls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uipc_syscalls.c,v 1.1
89 2021/05/13 17:02:31
mvs Exp $ */
+/* $OpenBSD: uipc_syscalls.c,v 1.1
90 2021/05/13 17:31:59
mvs Exp $ */
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
/*
@@
-645,7
+645,7
@@
sendit(struct proc *p, int s, struct msghdr *mp, int flags, register_t *retsize)
mp->msg_controllen);
#endif
} else
- control =
0
;
+ control =
NULL
;
#ifdef KTRACE
if (KTRPOINT(p, KTR_GENIO)) {
ktriov = mallocarray(auio.uio_iovcnt, sizeof(struct iovec),