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.
This commit is contained in:
Nick Sayer 2001-03-18 09:44:25 +00:00
parent f7c5bca2ef
commit 989efc86f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74411
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}