summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r--libexec/ftpd/ftpd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index f3e437e..5d8229d 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2764,12 +2764,14 @@ static void
flagxfer(int flag)
{
- maskurg(!flag);
if (flag) {
- recvurg = 0;
transflag = 1;
- } else
+ maskurg(0);
+ recvurg = 0;
+ } else {
+ maskurg(1);
transflag = 0;
+ }
}
/*
OpenPOWER on IntegriCloud