]> git.sesse.net Git - betaftpd/blobdiff - ftpd.c
Finally fixed (hopefully) upload hang bug -- it was a SPELLING ERROR...
[betaftpd] / ftpd.c
diff --git a/ftpd.c b/ftpd.c
index d3587815bd790c595ddd9d107f10601bd90612f2..374db9691ba4900cda937a2c21fc84bf6547b5f9 100644 (file)
--- a/ftpd.c
+++ b/ftpd.c
@@ -632,8 +632,8 @@ int process_all_sendfiles(fd_set * const active_clients, const int num_ac)
                f = next;
                next = f->next_ftran;
 
-#if HAVE_UPLOAD
-               if (f->upload == 1 && fds[f->sock].revents & POLLHUP) {
+#if WANT_UPLOAD
+               if ((f->upload == 1) && (fds[f->sock].revents & POLLHUP)) {
                        finish_transfer(f);
                        continue;
                }