diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sss_client/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sss_client/common.c b/src/sss_client/common.c index b6033055..55e393e5 100644 --- a/src/sss_client/common.c +++ b/src/sss_client/common.c @@ -53,6 +53,9 @@ int sss_cli_sd = -1; /* the sss client socket descriptor */ struct stat sss_cli_sb; /* the sss client stat buffer */ +#if HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR +__attribute__((destructor)) +#endif static void sss_cli_close_socket(void) { if (sss_cli_sd != -1) { |