From: Andre Date: Wed, 21 Jun 2006 22:21:51 +0000 (+0200) Subject: client_close(): disable crypt X-Git-Tag: v0.2.14~60^2~5 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=eb0ecb54495e6486b44e7bb6c5d07ed94ceb0405;ds=inline client_close(): disable crypt just in case the fd gets reused. --- 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);