From owner-freebsd-bugs Sat May 13 06:20:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA00850 for bugs-outgoing; Sat, 13 May 1995 06:20:02 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA00843 ; Sat, 13 May 1995 06:20:01 -0700 Date: Sat, 13 May 1995 06:20:01 -0700 Message-Id: <199505131320.GAA00843@freefall.cdrom.com> From: John Capo Reply-To: John Capo To: freebsd-bugs Subject: bin/399: FtpPasv in libftp returns address of local variable In-Reply-To: Your message of Sat, 13 May 1995 08:42:09 -0400 <199505131242.IAA17555@irbs.irbs.com> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 399 >Category: bin >Synopsis: FtpPasv in libftp returns address of local variable >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 13 06:20:00 1995 >Originator: John Capo >Organization: IRBS Engineering >Release: FreeBSD 2.0.950418-SNAP i386 >Environment: >Description: Function FtpPasv() in libftp/FtpPasv.c returns address of local char array. >How-To-Repeat: >Fix: *** lib/libftp/FtpPasv.c.orig Tue Apr 25 16:31:06 1995 --- lib/libftp/FtpPasv.c Sat May 13 08:36:11 1995 *************** *** 19,25 **** char * FtpPasv (FTP *ftp) { char *msg; ! String PORT; char *p=PORT; if FtpError(FtpCommand(ftp,"PASV","",227,EOF)) --- 19,25 ---- char * FtpPasv (FTP *ftp) { char *msg; ! static String PORT; char *p=PORT; if FtpError(FtpCommand(ftp,"PASV","",227,EOF)) >Audit-Trail: >Unformatted: