2
0
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:
Michael Graff 2000-01-18 01:45:09 +00:00
parent 7dbf5a0b64
commit c1cfd8ef05

View File

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