1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

set SO_USELOOPBACK opt to 0, matching comment

caught by clang-22 -Wuninitialized-const-pointer
This commit is contained in:
jsg
2026-05-17 00:18:11 +00:00
parent baf8777e9c
commit 5deedc5585
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: kroute.c,v 1.15 2025/01/02 06:35:57 anton Exp $ */
/* $OpenBSD: kroute.c,v 1.16 2026/05/17 00:18:11 jsg Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -82,7 +82,7 @@ kif_init(void)
int
kr_init(void)
{
int opt, fd;
int opt = 0, fd;
if ((fd = socket(AF_ROUTE, SOCK_RAW | SOCK_CLOEXEC | SOCK_NONBLOCK,
0)) == -1) {