]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
client_close(): disable crypt
[paraslash.git] / client_common.c
index 8bca7b7f04e237e4bfb0b477b828ae6678f9f2aa..b77c192f3a1c31bc0792fd427b39e21518c2fbd1 100644 (file)
@@ -50,8 +50,10 @@ void client_close(struct private_client_data *pcd)
 {
        if (pcd)
                return;
-       if (pcd->fd >= 0)
+       if (pcd->fd >= 0) {
+               disable_crypt(pcd->fd);
                close(pcd->fd);
+       }
        free(pcd->user);
        free(pcd->config_file);
        free(pcd->key_file);