aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-09 19:04:49 -0400
committerFranklin Wei <me@fwei.tk>2018-07-09 19:04:49 -0400
commit5de9ff09f0a812e78681e8eb53b5c36844da1e58 (patch)
treef8fbe7394d7af40ec79f63d6fdd27e80fb5d683e
parent1aefbfaad668d2a4aafab0a24f728727f9dddff3 (diff)
downloadcsaa-5de9ff09f0a812e78681e8eb53b5c36844da1e58.zip
csaa-5de9ff09f0a812e78681e8eb53b5c36844da1e58.tar.gz
csaa-5de9ff09f0a812e78681e8eb53b5c36844da1e58.tar.bz2
csaa-5de9ff09f0a812e78681e8eb53b5c36844da1e58.tar.xz
Prevent short read in client
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 7df2868..d422385 100644
--- a/client.c
+++ b/client.c
@@ -449,7 +449,7 @@ bool exec_request(int fd, const struct user_request *req,
if(verify_verinfo(&verinfo, user_key, keylen, req->retrieve.nonce, hmac))
{
- if(verinfo.idx != 0)
+ if(verinfo.idx != 0 && !is_zero(verinfo.current_acl))
{
struct iomt *acl = iomt_deserialize(read_from_fd, &fd);
printf("ACL: ");