check auth_proxy return value properly

This commit is contained in:
rsc 2005-05-07 22:33:54 +00:00
parent 11f10a6cb9
commit 78378021c8

View file

@ -141,7 +141,7 @@ xauth(void)
return;
}
if(xauth_proxy(auth_getkey, "proto=p9any role=client %s", keypattern) < 0)
if(xauth_proxy(auth_getkey, "proto=p9any role=client %s", keypattern) == nil)
sysfatal("authproxy: %r");
}