Date: Mon, 10 Jul 2000 14:11:25 -0700 (PDT) From: ambrisko@whistle.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/19835: telnet -X SRA core dump Message-ID: <200007102111.OAA15710@whistle.com>
next in thread | raw e-mail | index | archive | help
>Number: 19835
>Category: bin
>Synopsis: Fix core dump when disabling SRA authentication (telnet -X SRA)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 10 14:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Doug Ambrisko
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
Whistle/IBM
>Environment:
US release
>Description:
"telnet -X SRA" results in a core dump. This is due to a NULL pointer
passed to strcasecmp in libtelnet. So this also effect telnetd as well.
>How-To-Repeat:
>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/07/10 21:03:07
***************
*** 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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007102111.OAA15710>
