diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-10-18 21:38:01 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-10-18 21:38:01 +0800 |
commit | 45bd0edae52c07daa2d54ca7f7c0a57d51130791 (patch) | |
tree | 38ab731e4c38f1e287c187a9ca14ea73a92f9434 /packet.c | |
parent | aafeebd0c841494e4f7315890bc97ed0daf99cbd (diff) | |
parent | 3d733a16e9ee856a45a1fbd9a1b48005d78063f9 (diff) |
Merge in changes from the past couple of releases
--HG--
branch : ecc
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -376,7 +376,7 @@ static int checkmac() { /* compare the hash */ buf_setpos(ses.readbuf, contents_len); - if (memcmp(mac_bytes, buf_getptr(ses.readbuf, mac_size), mac_size) != 0) { + if (constant_time_memcmp(mac_bytes, buf_getptr(ses.readbuf, mac_size), mac_size) != 0) { return DROPBEAR_FAILURE; } else { return DROPBEAR_SUCCESS; |