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:
parent
d600e3e3ac
commit
392858ffd3
@ -265,13 +265,13 @@ getauthmask(type, maskp)
|
|||||||
{
|
{
|
||||||
register int x;
|
register int x;
|
||||||
|
|
||||||
if (!strcasecmp(type, AUTHTYPE_NAME(0))) {
|
if (AUTHTYPE_NAME(0) && !strcasecmp(type, AUTHTYPE_NAME(0))) {
|
||||||
*maskp = -1;
|
*maskp = -1;
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (x = 1; x < AUTHTYPE_CNT; ++x) {
|
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);
|
*maskp = typemask(x);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
@ -265,13 +265,13 @@ getauthmask(type, maskp)
|
|||||||
{
|
{
|
||||||
register int x;
|
register int x;
|
||||||
|
|
||||||
if (!strcasecmp(type, AUTHTYPE_NAME(0))) {
|
if (AUTHTYPE_NAME(0) && !strcasecmp(type, AUTHTYPE_NAME(0))) {
|
||||||
*maskp = -1;
|
*maskp = -1;
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (x = 1; x < AUTHTYPE_CNT; ++x) {
|
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);
|
*maskp = typemask(x);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user