libauthsrv: dont pass netroot to netmkaddr()'s defnet parameter in authdial() (thanks kenji arisawa)
This commit is contained in:
parent
613578b69f
commit
c911310a8b
1 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,7 @@ authdial(char *netroot, char *dom)
|
||||||
|
|
||||||
if(dom == nil)
|
if(dom == nil)
|
||||||
/* look for one relative to my machine */
|
/* look for one relative to my machine */
|
||||||
return dial(netmkaddr("$auth", netroot, "ticket"), 0, 0, 0);
|
return dial(netmkaddr("$auth", nil, "ticket"), nil, nil, nil);
|
||||||
|
|
||||||
/* look up an auth server in an authentication domain */
|
/* look up an auth server in an authentication domain */
|
||||||
p = csgetvalue(netroot, "authdom", dom, "auth", &t);
|
p = csgetvalue(netroot, "authdom", dom, "auth", &t);
|
||||||
|
@ -39,8 +39,7 @@ authdial(char *netroot, char *dom)
|
||||||
rv = -1;
|
rv = -1;
|
||||||
for(nt = t; nt != nil; nt = nt->entry) {
|
for(nt = t; nt != nil; nt = nt->entry) {
|
||||||
if(strcmp(nt->attr, "auth") == 0) {
|
if(strcmp(nt->attr, "auth") == 0) {
|
||||||
p = netmkaddr(nt->val, netroot, "ticket");
|
rv = dial(netmkaddr(nt->val, nil, "ticket"), nil, nil, nil);
|
||||||
rv = dial(p, 0, 0, 0);
|
|
||||||
if(rv >= 0)
|
if(rv >= 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue