]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct #ifdef wrapped logic
authorNick Porter <nick@portercomputing.co.uk>
Wed, 9 Jul 2025 11:41:19 +0000 (12:41 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 9 Jul 2025 11:41:19 +0000 (12:41 +0100)
src/bin/dhcpclient.c

index 6960516e59799888a306756583ff989e7583856d..99524a1c9207b27cfd1cb8dcc8321fdbd92038f6 100644 (file)
@@ -262,7 +262,11 @@ static fr_packet_t *fr_dhcpv4_recv_raw_loop(int lsockfd,
 #ifdef HAVE_LIBPCAP
                        if (pcap) {
                                reply = fr_dhcpv4_pcap_recv(pcap);
+#  ifdef HAVE_LINUX_IF_PACKET_H
                        } else
+#  else
+                       }
+#  endif
 #endif
 #ifdef HAVE_LINUX_IF_PACKET_H
                        {