From 989efc86f57471a7abba625ad4a6a06e96b7744a Mon Sep 17 00:00:00 2001 From: Nick Sayer Date: Sun, 18 Mar 2001 09:44:25 +0000 Subject: [PATCH] Fix core noted in -stable with 'auth disable SRA'. I just mistakenly commited this to RELENG_4. I have contacted Jordan to see about how to fix this. Pass the pointy hat. --- contrib/telnet/libtelnet/auth.c | 4 ++-- crypto/telnet/libtelnet/auth.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/telnet/libtelnet/auth.c b/contrib/telnet/libtelnet/auth.c index 8bdb2cade176..7140499d4952 100644 --- a/contrib/telnet/libtelnet/auth.c +++ b/contrib/telnet/libtelnet/auth.c @@ -265,13 +265,13 @@ getauthmask(type, maskp) { register int x; - if (!strcasecmp(type, AUTHTYPE_NAME(0))) { + if (AUTHTYPE_NAME(0) && !strcasecmp(type, AUTHTYPE_NAME(0))) { *maskp = -1; return(1); } for (x = 1; x < AUTHTYPE_CNT; ++x) { - if (!strcasecmp(type, AUTHTYPE_NAME(x))) { + if (AUTHTYPE_NAME(x) && !strcasecmp(type, AUTHTYPE_NAME(x))) { *maskp = typemask(x); return(1); } diff --git a/crypto/telnet/libtelnet/auth.c b/crypto/telnet/libtelnet/auth.c index 8bdb2cade176..7140499d4952 100644 --- a/crypto/telnet/libtelnet/auth.c +++ b/crypto/telnet/libtelnet/auth.c @@ -265,13 +265,13 @@ getauthmask(type, maskp) { register int x; - if (!strcasecmp(type, AUTHTYPE_NAME(0))) { + if (AUTHTYPE_NAME(0) && !strcasecmp(type, AUTHTYPE_NAME(0))) { *maskp = -1; return(1); } for (x = 1; x < AUTHTYPE_CNT; ++x) { - if (!strcasecmp(type, AUTHTYPE_NAME(x))) { + if (AUTHTYPE_NAME(x) && !strcasecmp(type, AUTHTYPE_NAME(x))) { *maskp = typemask(x); return(1); }