]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Add an explicit type cast for TCP FASTOPEN fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Jun 2017 07:59:32 +0000 (07:59 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Jun 2017 07:59:32 +0000 (07:59 +0000)
git-svn-id: file:///svn/unbound/trunk@4205 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/netevent.c

index 7faf7a2fe657fcba8f73879d1935127c7c73f65b..55d1c085230daa23dfeeb4a6f142dd7f37e50bde 100644 (file)
@@ -1,3 +1,6 @@
+6 June 2017: Wouter
+       - Add an explicit type cast for TCP FASTOPEN fix.
+
 1 June 2017: Ralph
        - Fix #1274: automatically trim chroot path from dnscrypt key/cert paths
          (from Manu Bretelle).
index d3955aae79973b5e7d11597416dfc55841b0b314..6990cdb36f3687bd71accd83c1d6356a1310a9de 100644 (file)
@@ -1417,7 +1417,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
                        /* fallthrough to nonFASTOPEN
                         * (MSG_FASTOPEN on Linux 3 produces EPIPE)
                         * we need to perform connect() */
-                       if(connect(fd, &c->repinfo.addr, c->repinfo.addrlen) == -1) {
+                       if(connect(fd, (struct sockaddr *)&c->repinfo.addr, c->repinfo.addrlen) == -1) {
 #ifdef EINPROGRESS
                                if(errno == EINPROGRESS)
                                        return 1; /* wait until connect done*/
@@ -1428,7 +1428,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
                                        return 1; /* wait until connect done*/
 #endif
                                if(tcp_connect_errno_needs_log(
-                                       &c->repinfo.addr, c->repinfo.addrlen)) {
+                                       (struct sockaddr *)&c->repinfo.addr, c->repinfo.addrlen)) {
                                        log_err_addr("outgoing tcp: connect after EPIPE for fastopen",
                                                strerror(errno), &c->repinfo.addr, c->repinfo.addrlen);
                                }