diff options
author | nsayer <nsayer@FreeBSD.org> | 2001-03-18 09:44:25 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2001-03-18 09:44:25 +0000 |
commit | 392858ffd3db7f622b30d49ff8b01b841d724ca0 (patch) | |
tree | 7948c22176387ac28041021d5f90058d7b8e4ec3 | |
parent | d600e3e3accd70a0ec5c17250510c4ffc16b5556 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | contrib/telnet/libtelnet/auth.c | 4 | ||||
-rw-r--r-- | 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 8bdb2ca..7140499 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 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); } |