From 47420ea22deb1a0483c7837a716f9c868219ae9a Mon Sep 17 00:00:00 2001 From: miod Date: Tue, 30 Aug 2022 16:24:16 +0000 Subject: [PATCH] Fix uninitialized variable after the switch to (*pru_send); found the hard way on alpha. ok bluhm@ mvs@ --- sys/kern/uipc_usrreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 35fd195679c..193d6c55ff5 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_usrreq.c,v 1.179 2022/08/29 08:08:17 mvs Exp $ */ +/* $OpenBSD: uipc_usrreq.c,v 1.180 2022/08/30 16:24:16 miod Exp $ */ /* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */ /* @@ -464,7 +464,7 @@ uipc_send(struct socket *so, struct mbuf *m, struct mbuf *nam, { struct unpcb *unp = sotounpcb(so); struct socket *so2; - int error; + int error = 0; if (control) { sounlock(so); -- 2.20.1