]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #177: dnstap does not build on macOS.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 2 Mar 2020 12:33:34 +0000 (13:33 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 2 Mar 2020 12:33:34 +0000 (13:33 +0100)
dnstap/dtstream.c
doc/Changelog

index 2d55d197f1bf06d28f2a9045861cbc5d7802b48f..bb862d4419e176c206768f29813e28af95a4b168 100644 (file)
@@ -1579,7 +1579,7 @@ static int dtio_open_output_local(struct dt_io_thread* dtio)
        memset(&s, 0, sizeof(s));
 #ifdef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
         /* this member exists on BSDs, not Linux */
-        s.sun_len = (unsigned)sizeof(usock);
+        s.sun_len = (unsigned)sizeof(s);
 #endif
        s.sun_family = AF_LOCAL;
        /* length is 92-108, 104 on FreeBSD */
index 970cbcf15c5e6506287589eb412b762731dc1d7a..27f6a66f0acdb35d1966c8afdad93127fa2c5ab3 100644 (file)
@@ -1,6 +1,9 @@
 2 March 2020: George
        - Fix compiler warning in dns64/dns64.c
 
+2 March 2020: Wouter
+       - Fix #177: dnstap does not build on macOS.
+
 28 February 2020: Ralph
        - Merge PR #172: Add IBM s390x arch for testing, by noloader.