mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
close the socket on context destroy
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user