diff options
author | 2001-12-28 17:38:17 +0000 | |
---|---|---|
committer | 2001-12-28 17:38:17 +0000 | |
commit | 39ff527a0d49de96585928876db5bf8b6a51381e (patch) | |
tree | 7b000e8b3b802064f595b2b2fcc3f8d7ff9a759d | |
parent | Fix hex mode (-x), based on patch from David Gullasch (diff) | |
download | wireguard-openbsd-39ff527a0d49de96585928876db5bf8b6a51381e.tar.xz wireguard-openbsd-39ff527a0d49de96585928876db5bf8b6a51381e.zip |
Fix memory leak with EPRT command; Hiroyuki YAMAMORI
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index b8c404050f1..de5c92594b1 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpcmd.y,v 1.27 2001/12/07 18:45:32 mpech Exp $ */ +/* $OpenBSD: ftpcmd.y,v 1.28 2001/12/28 17:38:17 millert 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.27 2001/12/07 18:45:32 mpech Exp $"; +static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.28 2001/12/28 17:38:17 millert Exp $"; #endif #endif /* not lint */ @@ -237,6 +237,8 @@ cmd { if ($2) extended_port($4); + if ($4 != NULL) + free($4); } | PASV check_login_epsvall CRLF |