summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpcmd.y
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-01-23 10:28:51 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-01-23 10:28:51 +0000
commit67a6b62998d9a9a5ea233abf0f26fb4d0964a646 (patch)
treeb9acabd8127283b84d73225d158973812a6b507d /libexec/ftpd/ftpcmd.y
parent3154e1e35d89397d95ba0b08b21bdf3d5777f174 (diff)
``pathname'' can be NULL here too.
millert@ ok
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r--libexec/ftpd/ftpcmd.y7
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
{