mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Add an explicit type cast for TCP FASTOPEN fix.
git-svn-id: file:///svn/unbound/trunk@4205 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b93fd4e0c9
commit
f78e04a12c
2 changed files with 5 additions and 2 deletions
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue