mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix for #367: rc_ports don't have ub_sock; skip cleaning up.
This commit is contained in:
parent
a06d761f74
commit
826828673a
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,6 @@
|
|||
26 February 2021: George
|
||||
- Fix for #367: rc_ports don't have ub_sock; skip cleaning up.
|
||||
|
||||
25 February 2021: Wouter
|
||||
- Merge PR #367 : DNSTAP log local address. With code from PR #365
|
||||
and fixes #368 : dnstap does not log the DNS message ID for
|
||||
|
|
|
|||
|
|
@ -1690,8 +1690,11 @@ void listening_ports_free(struct listen_port* list)
|
|||
if(list->fd != -1) {
|
||||
sock_close(list->fd);
|
||||
}
|
||||
freeaddrinfo(list->socket->addr);
|
||||
free(list->socket);
|
||||
/* rc_ports don't have ub_socket */
|
||||
if(list->socket) {
|
||||
freeaddrinfo(list->socket->addr);
|
||||
free(list->socket);
|
||||
}
|
||||
free(list);
|
||||
list = nx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue