diff options
Diffstat (limited to 'Src/Modules/zftp.c')
-rw-r--r-- | Src/Modules/zftp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index 66bf1e662..5120c6c64 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -2683,8 +2683,7 @@ zfclose(int leaveparams) } if (zfsess->control.fd != -1) { zfnopen--; - close(zfsess->control.fd); - zfsess->control.fd = -1; + tcp_close(&(zfsess->control)); } if (zfstatfd != -1) { |