Merge pull request #19 from conserver/8-defaultaccess-appears-broken

Fix #8 - defaultaccess appears broken
This commit is contained in:
Bryan Stansell 2019-03-21 21:32:17 -07:00 committed by GitHub
commit bd837bf4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;