summaryrefslogtreecommitdiff
path: root/libexec/tftpd/tftp-transfer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/tftpd/tftp-transfer.c')
-rw-r--r--libexec/tftpd/tftp-transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/tftpd/tftp-transfer.c b/libexec/tftpd/tftp-transfer.c
index 2f3dc3fe05600..0a0c099e4c33e 100644
--- a/libexec/tftpd/tftp-transfer.c
+++ b/libexec/tftpd/tftp-transfer.c
@@ -397,9 +397,9 @@ tftp_receive(int peer, uint16_t *block, struct tftp_stats *ts,
send_error(peer, ENOSPACE);
goto abort;
}
- if (n_data != segsize)
- write_close();
}
+ if (n_data != segsize)
+ write_close();
windowblock++;
/* Only send ACKs for the last block in the window. */