diff options
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index 8c06e2b5921..d51e3314b6f 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpcmd.y,v 1.31 2002/01/17 05:27:35 itojun Exp $ */ +/* $OpenBSD: ftpcmd.y,v 1.32 2002/01/23 10:28:50 mpech Exp $ */ /* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */ /* @@ -47,7 +47,7 @@ #if 0 static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94"; #else -static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.31 2002/01/17 05:27:35 itojun Exp $"; +static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.32 2002/01/23 10:28:50 mpech Exp $"; #endif #endif /* not lint */ @@ -419,7 +419,8 @@ cmd "Bad sequence of commands."); } } - free($4); + if ($4 != NULL) + free($4); } | ABOR check_login CRLF { |