File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- /* $OpenBSD: frontend.c,v 1.21 2025/04/27 16:22:33 florian Exp $ */
1
+ /* $OpenBSD: frontend.c,v 1.22 2025/06/19 10:28:41 jmatthew Exp $ */
2
2
3
3
/*
4
4
* Copyright (c) 2017, 2021, 2024 Florian Obser <[email protected] >
@@ -559,9 +559,6 @@ update_iface(uint32_t if_index)
559
559
int flags ;
560
560
char ifnamebuf [IF_NAMESIZE ], * if_name ;
561
561
562
- if (getifaddrs (& ifap ) != 0 )
563
- fatal ("getifaddrs" );
564
-
565
562
if ((if_name = if_indextoname (if_index , ifnamebuf )) == NULL )
566
563
return ;
567
564
@@ -571,6 +568,9 @@ update_iface(uint32_t if_index)
571
568
if (find_iface_conf (& frontend_conf -> iface_list , if_name ) == NULL )
572
569
return ;
573
570
571
+ if (getifaddrs (& ifap ) != 0 )
572
+ fatal ("getifaddrs" );
573
+
574
574
memset (& ifinfo , 0 , sizeof (ifinfo ));
575
575
ifinfo .if_index = if_index ;
576
576
ifinfo .link_state = -1 ;
You can’t perform that action at this time.
0 commit comments