diff options
author | 2000-06-27 00:19:16 +0000 | |
---|---|---|
committer | 2000-06-27 00:19:16 +0000 | |
commit | b70abf8b7344416c98de9e629e40abed941dca87 (patch) | |
tree | 2a9525064a9be63943712fac91319e9fb0d7613f | |
parent | fix pasto; noted by art (diff) | |
download | wireguard-openbsd-b70abf8b7344416c98de9e629e40abed941dca87.tar.xz wireguard-openbsd-b70abf8b7344416c98de9e629e40abed941dca87.zip |
initialize result. this fixes the recent problem that makes ftp coredump
if epsv4 is disabled. problem reported by price@netdoor.com on misc.
-rw-r--r-- | usr.bin/ftp/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 9be5c86f8fa..a29bbe1ffea 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.36 2000/06/21 19:22:54 itojun Exp $ */ +/* $OpenBSD: ftp.c,v 1.37 2000/06/27 00:19:16 fgsch Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -67,7 +67,7 @@ #if 0 static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; #else -static char rcsid[] = "$OpenBSD: ftp.c,v 1.36 2000/06/21 19:22:54 itojun Exp $"; +static char rcsid[] = "$OpenBSD: ftp.c,v 1.37 2000/06/27 00:19:16 fgsch Exp $"; #endif #endif /* not lint */ @@ -1193,7 +1193,7 @@ int initconn() { char *p, *a; - int result, len, tmpno = 0; + int result = ERROR, len, tmpno = 0; int on = 1; int error; u_int addr[16], port[2]; |