mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:02:05 -04:00
close the socket on context destroy
This commit is contained in:
parent
7dbf5a0b64
commit
c1cfd8ef05
1 changed files with 5 additions and 0 deletions
|
|
@ -92,6 +92,11 @@ lwres_context_destroy(lwres_context_t **contextp)
|
|||
ctx = *contextp;
|
||||
*contextp = NULL;
|
||||
|
||||
if (ctx->sock != -1) {
|
||||
close(ctx->sock);
|
||||
ctx->sock = -1;
|
||||
}
|
||||
|
||||
CTXFREE(ctx, sizeof(lwres_context_t));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue