diff options
-rw-r--r-- | nsswitch/wb_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index fbb550f139..9a3788a072 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -62,6 +62,9 @@ static void init_response(struct winbindd_response *response) /* Close established socket */ +#if HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR +__attribute__((destructor)) +#endif static void winbind_close_sock(void) { if (winbindd_fd != -1) { |