From 6e862e813b7f54f26aeae69511099e1d7183a7b1 Mon Sep 17 00:00:00 2001 From: mvs Date: Thu, 13 May 2021 17:31:59 +0000 Subject: [PATCH] Assign NULL instead of 0 to `control' within sendit(). It's mbuf(9) pointer. ok deraadt@ --- sys/kern/uipc_syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 4d332ea6f36..67b9baf441b 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.189 2021/05/13 17:02:31 mvs Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.190 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), -- 2.20.1