Fix #8 - defaultaccess appears broken

This commit is contained in:
Bryan Stansell 2019-03-21 21:19:42 -07:00
parent e6193995fe
commit da781c9187
No known key found for this signature in database
GPG Key ID: 28E4B7253029E7F6

View File

@ -355,7 +355,7 @@ SetDefAccess(
if ((a->pcwho = StrDup(addr)) == (char *)0)
OutOfMem();
a->ctrust = 'a';
a->ctrust = config->defaultaccess;
a->pACnext = pACList;
pACList = a;
@ -368,7 +368,7 @@ SetDefAccess(
OutOfMem();
if ((pACList->pcwho = StrDup("127.0.0.1")) == (char *)0)
OutOfMem();
pACList->ctrust = 'a';
pACList->ctrust = config->defaultaccess;
CONDDEBUG((1, "SetDefAccess(): trust=%c, who=%s", pACList->ctrust,
pACList->pcwho));
#else
@ -380,7 +380,7 @@ SetDefAccess(
OutOfMem();
if ((a->pcwho = StrDup(addr)) == (char *)0)
OutOfMem();
a->ctrust = 'a';
a->ctrust = config->defaultaccess;
a->pACnext = pACList;
pACList = a;