ref: c911310a8b731d20a603d7710003e44b7ff7c8b8
parent: 613578b69f8bada4c6aa791e56768e59b017b20c
author: cinap_lenrek <[email protected]>
date: Wed May 18 11:25:43 EDT 2016
libauthsrv: dont pass netroot to netmkaddr()'s defnet parameter in authdial() (thanks kenji arisawa)
--- a/sys/src/libauthsrv/authdial.c
+++ b/sys/src/libauthsrv/authdial.c
@@ -13,7 +13,7 @@
if(dom == nil)
/* 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 */
p = csgetvalue(netroot, "authdom", dom, "auth", &t);
@@ -39,8 +39,7 @@
rv = -1;
for(nt = t; nt != nil; nt = nt->entry) {
if(strcmp(nt->attr, "auth") == 0) {
- p = netmkaddr(nt->val, netroot, "ticket");
- rv = dial(p, 0, 0, 0);
+ rv = dial(netmkaddr(nt->val, nil, "ticket"), nil, nil, nil);
if(rv >= 0)
break;
}