client_close(): disable crypt
authorAndre <maan@p133.(none)>
Wed, 21 Jun 2006 22:21:51 +0000 (00:21 +0200)
committerAndre <maan@p133.(none)>
Wed, 21 Jun 2006 22:21:51 +0000 (00:21 +0200)
just in case the fd gets reused.

client_common.c

index 8bca7b7..b77c192 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);