diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-06-27 00:19:17 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-06-27 00:19:17 +0000 |
commit | f99e46d2ec6ba05e690bb7b0b9a9f6a02a39488f (patch) | |
tree | 742f72f46747709ee3050eb3cd3ea282911faf9f /usr.bin | |
parent | 35124bd36d54a495801a8df44f269c9220d53c5f (diff) |
initialize result. this fixes the recent problem that makes ftp coredump
if epsv4 is disabled. problem reported by price@netdoor.com on misc.
Diffstat (limited to 'usr.bin')
-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]; |