summaryrefslogtreecommitdiffstats
path: root/crypto/telnet
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2001-03-18 09:44:25 +0000
committernsayer <nsayer@FreeBSD.org>2001-03-18 09:44:25 +0000
commit392858ffd3db7f622b30d49ff8b01b841d724ca0 (patch)
tree7948c22176387ac28041021d5f90058d7b8e4ec3 /crypto/telnet
parentd600e3e3accd70a0ec5c17250510c4ffc16b5556 (diff)
downloadFreeBSD-src-392858ffd3db7f622b30d49ff8b01b841d724ca0.zip
FreeBSD-src-392858ffd3db7f622b30d49ff8b01b841d724ca0.tar.gz
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.
Diffstat (limited to 'crypto/telnet')
-rw-r--r--crypto/telnet/libtelnet/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/telnet/libtelnet/auth.c b/crypto/telnet/libtelnet/auth.c
index 8bdb2ca..7140499 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);
}
OpenPOWER on IntegriCloud