From ambrisko@whistle.com  Fri Jun 30 10:15:07 2000
Return-Path: <ambrisko@whistle.com>
Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38])
	by hub.freebsd.org (Postfix) with ESMTP id C295737BAA4
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2000 10:15:02 -0700 (PDT)
	(envelope-from ambrisko@whistle.com)
Received: from whistle.com (crab.whistle.com [207.76.205.112])
	by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id KAA50612
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2000 10:14:43 -0700 (PDT)
Received: (from ambrisko@localhost)
	by whistle.com (8.9.3/8.9.1) id KAA24148;
	Fri, 30 Jun 2000 10:14:32 -0700 (PDT)
	(envelope-from ambrisko)
Message-Id: <200006301714.KAA24148@whistle.com>
Date: Fri, 30 Jun 2000 10:14:32 -0700 (PDT)
From: Doug Ambrisko <ambrisko@whistle.com>
Reply-To: ambrisko@whistle.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Telnet :  Telnetd coredump when disabling SRA ie telnet -X SRA
X-Send-Pr-Version: 3.2

>Number:         19606
>Category:       bin
>Synopsis:       Telnet & Telnetd coredump when disabling SRA ie telnet -X SRA
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 10:20:00 PDT 2000
>Closed-Date:    Sat Nov 25 00:21:58 PST 2000
>Last-Modified:  Sat Nov 25 00:22:15 PST 2000
>Originator:     Doug Ambrisko
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

	
Effects 4.0 and -current no special stuff needed.

>Description:

	
"telnet -X SRA" produces a core-dump as well as "telnetd -X SRA" or
anything to disable SRA authentication type.

>How-To-Repeat:

	
again telnet -X SRA

>Fix:

	

Index: auth.c
===================================================================
RCS file: /cvs/freebsd/src/crypto/telnet/libtelnet/auth.c,v
retrieving revision 1.3
diff -c -r1.3 auth.c
*** auth.c	1999/08/16 11:24:25	1.3
--- auth.c	2000/06/30 17:08:24
***************
*** 249,255 ****
  {
  	int x;
  	for (x = 0; x < AUTHTYPE_CNT; ++x) {
! 		if (!strcasecmp(name, AUTHTYPE_NAME(x))) {
  			i_wont_support |= typemask(x);
  			break;
  		}
--- 249,255 ----
  {
  	int x;
  	for (x = 0; x < AUTHTYPE_CNT; ++x) {
! 		if (AUTHTYPE_NAME(x) && !strcasecmp(name, AUTHTYPE_NAME(x))) {
  			i_wont_support |= typemask(x);
  			break;
  		}

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Sat Jul 8 07:01:58 PDT 2000 
Responsible-Changed-Why:  
Misfiled PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19606 

From: Palle Girgensohn <girgen@partitur.se>
To: freebsd-gnats-submit@FreeBSD.org, ambrisko@whistle.com
Cc:  
Subject: Re: bin/19606: Telnet & Telnetd coredump when disabling SRA ie telnet -X 
 SRA
Date: Fri, 24 Nov 2000 23:45:43 +0100

 The patch seems to be applied, and it works fine in my
 4.2-RELEASE, so I guess this PR can be closed?
 
 /Palle
 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Sat Nov 25 00:21:58 PST 2000 
State-Changed-Why:  
Closed at originator's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19606 
>Unformatted:
 Doug Ambrisko
 sw-bug
