From: mvs Date: Thu, 13 May 2021 17:31:59 +0000 (+0000) Subject: Assign NULL instead of 0 to `control' within sendit(). It's mbuf(9) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6e862e813b7f54f26aeae69511099e1d7183a7b1;p=openbsd Assign NULL instead of 0 to `control' within sendit(). It's mbuf(9) pointer. ok deraadt@ --- 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),