mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
close the socket on context destroy
This commit is contained in:
parent
7dbf5a0b64
commit
c1cfd8ef05
@ -92,6 +92,11 @@ lwres_context_destroy(lwres_context_t **contextp)
|
|||||||
ctx = *contextp;
|
ctx = *contextp;
|
||||||
*contextp = NULL;
|
*contextp = NULL;
|
||||||
|
|
||||||
|
if (ctx->sock != -1) {
|
||||||
|
close(ctx->sock);
|
||||||
|
ctx->sock = -1;
|
||||||
|
}
|
||||||
|
|
||||||
CTXFREE(ctx, sizeof(lwres_context_t));
|
CTXFREE(ctx, sizeof(lwres_context_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user