mirror of https://github.com/omar-polo/gmid.git
fix typo; the size computation is done using len, not ret
This commit is contained in:
parent
c440a0ded9
commit
b894573ad9
2
crypto.c
2
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);
|
||||
|
|
Loading…
Reference in New Issue