summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/ip/ftpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/ip/ftpd.c b/sys/src/cmd/ip/ftpd.c
index 18c32646b..582e0a918 100644
--- a/sys/src/cmd/ip/ftpd.c
+++ b/sys/src/cmd/ip/ftpd.c
@@ -1152,6 +1152,8 @@ sitecmd(char *arg)
int nf, r;
Dir *d;
+ if(arg == 0)
+ return reply("501 bad site command");
nf = tokenize(arg, f, nelem(f));
if(nf != 3 || cistrcmp(f[0], "chmod") != 0)
return reply("501 bad site command");