- Fix for #367: rc_ports don't have ub_sock; skip cleaning up.

This commit is contained in:
George Thessalonikefs 2021-02-26 13:13:37 +01:00
parent a06d761f74
commit 826828673a
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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;
}