diff --git a/appl/ftp/ftpd/ftpcmd.y b/appl/ftp/ftpd/ftpcmd.y index 25e29fb1f..57a54cc76 100644 --- a/appl/ftp/ftpd/ftpcmd.y +++ b/appl/ftp/ftpd/ftpcmd.y @@ -409,8 +409,9 @@ cmd lreply(0, " SIZE"); reply(211, "End"); } - | OPTS SP foo CRLF + | OPTS SP STRING CRLF { + free ($3); reply(501, "Bad options"); }