mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
PR: 283138 MFH: 2024Q2 Reported by: Harald Schmalzbauer Obtained from: Simon Kelley, https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=5a1f2c577db58ea47727f1b6900c0be25e6db205
12 lines
401 B
C
12 lines
401 B
C
--- src/dhcp.c.orig 2024-02-13 13:49:15 UTC
|
|
+++ src/dhcp.c
|
|
@@ -1121,6 +1121,9 @@ static int relay_upstream4(int iface_index, struct dhc
|
|
to.sa.sa_family = AF_INET;
|
|
to.in.sin_addr = relay->server.addr4;
|
|
to.in.sin_port = htons(relay->port);
|
|
+#ifdef HAVE_SOCKADDR_SA_LEN
|
|
+ to.in.sin_len = sizeof(struct sockaddr_in);
|
|
+#endif
|
|
|
|
/* Broadcasting to server. */
|
|
if (relay->server.addr4.s_addr == 0)
|