]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 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);