libauth: dont print blobs in auth_proxy error strings
This commit is contained in:
parent
20883bd7de
commit
ea480e74bb
1 changed files with 4 additions and 3 deletions
|
@ -163,14 +163,15 @@ fauth_proxy(int fd, AuthRpc *rpc, AuthGetkey *getkey, char *params)
|
||||||
m = read(fd, buf + n, m - n);
|
m = read(fd, buf + n, m - n);
|
||||||
if(m <= 0){
|
if(m <= 0){
|
||||||
if(m == 0)
|
if(m == 0)
|
||||||
werrstr("auth_proxy short read: %s",
|
werrstr("auth_proxy short read");
|
||||||
buf);
|
else
|
||||||
|
werrstr("auth_proxy read fd: %r");
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
n += m;
|
n += m;
|
||||||
}
|
}
|
||||||
if(ret != ARok){
|
if(ret != ARok){
|
||||||
werrstr("auth_proxy rpc write: %s: %r", buf);
|
werrstr("auth_proxy rpc write: %r");
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue