projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec58eca
)
client_close(): disable crypt
author
Andre
<maan@p133.(none)>
Wed, 21 Jun 2006 22:21:51 +0000
(
00:21
+0200)
committer
Andre
<maan@p133.(none)>
Wed, 21 Jun 2006 22:21:51 +0000
(
00:21
+0200)
just in case the fd gets reused.
client_common.c
patch
|
blob
|
history
diff --git
a/client_common.c
b/client_common.c
index
8bca7b7
..
b77c192
100644
(file)
--- 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);