libauth: dont print blobs in auth_proxy error strings

This commit is contained in:
cinap_lenrek 2014-05-24 19:49:54 +02:00
parent 20883bd7de
commit ea480e74bb

View file

@ -163,14 +163,15 @@ fauth_proxy(int fd, AuthRpc *rpc, AuthGetkey *getkey, char *params)
m = read(fd, buf + n, m - n);
if(m <= 0){
if(m == 0)
werrstr("auth_proxy short read: %s",
buf);
werrstr("auth_proxy short read");
else
werrstr("auth_proxy read fd: %r");
goto Error;
}
n += m;
}
if(ret != ARok){
werrstr("auth_proxy rpc write: %s: %r", buf);
werrstr("auth_proxy rpc write: %r");
goto Error;
}
break;