fix typo; the size computation is done using len, not ret

This commit is contained in:
Omar Polo 2023-08-29 09:18:55 +00:00
parent c440a0ded9
commit b894573ad9
1 changed files with 1 additions and 1 deletions

View File

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