mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to reclaim tcp handler when it is closed due to dnscrypt buffer
allocation failure. git-svn-id: file:///svn/unbound/trunk@4309 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e5b8a37a20
commit
ffc2f687cf
2 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
23 August 2017: Wouter
|
23 August 2017: Wouter
|
||||||
- Fix #1407: Add ECS options check to unbound-checkconf.
|
- Fix #1407: Add ECS options check to unbound-checkconf.
|
||||||
- make depend
|
- make depend
|
||||||
|
- Fix to reclaim tcp handler when it is closed due to dnscrypt buffer
|
||||||
|
allocation failure.
|
||||||
|
|
||||||
22 August 2017: Wouter
|
22 August 2017: Wouter
|
||||||
- Fix install of trust anchor when two anchors are present, makes both
|
- Fix install of trust anchor when two anchors are present, makes both
|
||||||
|
|
|
||||||
|
|
@ -1551,6 +1551,13 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
|
||||||
c->dnscrypt_buffer = sldns_buffer_new(sldns_buffer_capacity(c->buffer));
|
c->dnscrypt_buffer = sldns_buffer_new(sldns_buffer_capacity(c->buffer));
|
||||||
if(!c->dnscrypt_buffer) {
|
if(!c->dnscrypt_buffer) {
|
||||||
log_err("Could not allocate dnscrypt buffer");
|
log_err("Could not allocate dnscrypt buffer");
|
||||||
|
reclaim_tcp_handler(c);
|
||||||
|
if(!c->tcp_do_close) {
|
||||||
|
fptr_ok(fptr_whitelist_comm_point(
|
||||||
|
c->callback));
|
||||||
|
(void)(*c->callback)(c, c->cb_arg,
|
||||||
|
NETEVENT_CLOSED, NULL);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue