summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/ip/tftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/tftpd.c b/sys/src/cmd/ip/tftpd.c
index 7a6ec6f77..e0569b959 100644
--- a/sys/src/cmd/ip/tftpd.c
+++ b/sys/src/cmd/ip/tftpd.c
@@ -301,12 +301,13 @@ options(int fd, char *buf, int bufsz, char *file, ushort oper, char *p, int dlen
break;
dlen -= vallen;
- nopts++;
olen = 0;
op = handleopt(fd, p, val);
if (op == nil)
continue;
+ nopts++;
+
/* append OACK response to buf */
nmlen = emits(p, bp, ep); /* option name */
if (nmlen < 0)