diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-29 09:18:55 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-29 09:18:55 +0000 |
commit | b894573ad9c5173af9f4a9403d54ad67e4ba0bcf (patch) | |
tree | fef5614476faa932c2ab4d7d991b50d175705a30 | |
parent | c440a0ded9bef20b32c6f86b27cdf5ab52e1e16f (diff) |
fix typo; the size computation is done using len, not ret
-rw-r--r-- | crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |