From 6c4423cd46ae465393db97defcfabe187311b155 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 3 Feb 2014 15:40:32 -0500 Subject: [PATCH] kadm5: use rk_closesocket to close sockets kadm5_c_destroy did not use rk_closesocket when cleaning up the context. This results in an exception on Windows since a socket is not a file descriptor. Change-Id: I9ebddad61f0199acb495a0773925df4f41e4fef2 --- lib/kadm5/destroy_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kadm5/destroy_c.c b/lib/kadm5/destroy_c.c index da9da39e6..9a4ab83be 100644 --- a/lib/kadm5/destroy_c.c +++ b/lib/kadm5/destroy_c.c @@ -42,7 +42,7 @@ kadm5_c_destroy(void *server_handle) free(context->realm); free(context->admin_server); - close(context->sock); + rk_closesocket(context->sock); if (context->client_name) free(context->client_name); if (context->service_name)