From jc@irbs.com  Sat May 13 06:14:29 1995
Received: from wc.cdrom.com (wc.cdrom.com [192.216.223.37])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA00734
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 May 1995 06:14:29 -0700
Received: from irbs.irbs.com (irbs.com [199.182.75.129])
          by wc.cdrom.com (8.6.12/8.6.12) with ESMTP id FAA26532
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 May 1995 05:47:26 -0700
Received: (from jc@localhost) by irbs.irbs.com (8.6.11/8.6.6) id IAA17555; Sat, 13 May 1995 08:42:09 -0400
Message-Id: <199505131242.IAA17555@irbs.irbs.com>
Date: Sat, 13 May 1995 08:42:09 -0400
From: John Capo <jc@irbs.com>
Reply-To: jc@irbs.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: FtpPasv in libftp returns address of local variable
X-Send-Pr-Version: 3.2

>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:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 13 06:20:00 1995
>Closed-Date:    Sat May 13 15:10:02 PDT 1995
>Last-Modified:
>Originator:     John Capo
>Release:        FreeBSD 2.0.950418-SNAP i386
>Organization:
IRBS Engineering
>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)) 


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Sat May 13 15:10:02 PDT 1995 
State-Changed-Why:  
Fix applied in FtpPasv.c v1.2 
>Unformatted:



