aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-29 09:18:55 +0000
committerOmar Polo <op@omarpolo.com>2023-08-29 09:18:55 +0000
commitb894573ad9c5173af9f4a9403d54ad67e4ba0bcf (patch)
treefef5614476faa932c2ab4d7d991b50d175705a30
parentc440a0ded9bef20b32c6f86b27cdf5ab52e1e16f (diff)
fix typo; the size computation is done using len, not ret
-rw-r--r--crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto.c b/crypto.c
index 1e6b858..cff2722 100644
--- a/crypto.c
+++ b/crypto.c
@@ -475,7 +475,7 @@ ecdsae_send_enc_imsg(const unsigned char *dgst, int dgst_len,
fatalx("size mismatch for imsg %d",
imsg.hdr.type);
memcpy(&res, data, sizeof(res));
- if (datalen != sizeof(res) + res.ret)
+ if (datalen != sizeof(res) + res.len)
fatalx("size mismatch for imsg %d",
imsg.hdr.type);
toptr = data + sizeof(res);