[3193] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-appl/938: bug in krb5 ftp client

daemon@ATHENA.MIT.EDU (zacheiss@MIT.EDU)
Mon Apr 9 23:35:10 2001

Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: krb5-unassigned@rt-11.mit.edu
Resent-Reply-To: krb5-bugs@MIT.EDU, zacheiss@MIT.EDU
Message-Id: <200104100334.XAA08561@sweet-transvestite.mit.edu>
Date: Mon, 9 Apr 2001 23:34:45 -0400 (EDT)
From: zacheiss@MIT.EDU
Reply-To: zacheiss@MIT.EDU
To: krb5-bugs@mit.edu
Cc: zacheiss@mit.edu


>Number:         938
>Category:       krb5-appl
>Synopsis:       ftp client won't allow connections to ports higher than 32767
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Mon Apr  9 23:35:01 EDT 2001
>Last-Modified:
>Originator:     Garry Zacheiss
>Organization:
Garry Zacheiss
>Release:        krb5-1.1.1
>Environment:
	
System: SunOS sweet-transvestite.mit.edu 5.7 Generic_106541-09 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

>Description:
	Attempting to use the krb5 ftp client to connect to a port
	higher than 32767 results in:

	[zacheiss@sweet-transvestite] ~$ ftp localhost 32768
	localhost: bad port number-- 32768
	usage: ftp host-name [port]
	ftp> 

>How-To-Repeat:
	Use the krb5 ftp client to connect to an ftp server running on a
	port higher than 32767.
>Fix:
	setpeer() in krb5/src/appl/gssftp/ftp/cmds.c declres the
	variable port to be a short.  It should be an unsigned short;
	see the enclosed patch.

--- cmds.c      1999/10/07 02:42:44     1.4
+++ cmds.c      2001/04/09 20:14:16     1.5
@@ -126,7 +126,7 @@
        char *argv[];
 {
        char *host, *hookup();
-       short port;
+       unsigned short port;
 
        if (connected) {
                printf("Already connected to %s, use close first.\n",
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post