X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client_common.c;h=b77c192f3a1c31bc0792fd427b39e21518c2fbd1;hb=de4ed577b6019b9b83466c2c893ff02bb5d833f5;hp=8bca7b7f04e237e4bfb0b477b828ae6678f9f2aa;hpb=4c6dd71312400fc04b3f0582b23a0cff831ee8fa;p=paraslash.git diff --git a/client_common.c b/client_common.c index 8bca7b7f..b77c192f 100644 --- a/client_common.c +++ b/client_common.c @@ -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);