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); 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;