aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-11 23:28:44 -0400
committerFranklin Wei <me@fwei.tk>2018-07-11 23:30:06 -0400
commit2be626ad923518bee51673ea639e7354d72e77cb (patch)
tree9f06080469ab7ff8d1938398e0e01ccf6af84a2b /client.c
parente89793b01cc47bcb3070cf76d0e3109aaa1f721c (diff)
downloadcsaa-2be626ad923518bee51673ea639e7354d72e77cb.zip
csaa-2be626ad923518bee51673ea639e7354d72e77cb.tar.gz
csaa-2be626ad923518bee51673ea639e7354d72e77cb.tar.bz2
csaa-2be626ad923518bee51673ea639e7354d72e77cb.tar.xz
Add omitted nonce in client's request_verinfo()
I forgot this at first, so it always passed the same all-zero "nonce": hardly a good thing! Thankfully the performance impact should be minimal, so there's no need to re-run any tests.
Diffstat (limited to 'client.c')
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.c b/client.c
index ebaba73..8d4635f 100644
--- a/client.c
+++ b/client.c
@@ -501,6 +501,7 @@ struct version_info request_verinfo(int fd, uint64_t user_id,
req.user_id = user_id;
req.retrieve.file_idx = file_idx;
req.retrieve.version = version;
+ req.retrieve.nonce = generate_nonce();
struct version_info verinfo;