summaryrefslogtreecommitdiffhomepage
path: root/packet.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-10-18 21:38:01 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-10-18 21:38:01 +0800
commit45bd0edae52c07daa2d54ca7f7c0a57d51130791 (patch)
tree38ab731e4c38f1e287c187a9ca14ea73a92f9434 /packet.c
parentaafeebd0c841494e4f7315890bc97ed0daf99cbd (diff)
parent3d733a16e9ee856a45a1fbd9a1b48005d78063f9 (diff)
Merge in changes from the past couple of releases
--HG-- branch : ecc
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index d458ccf..4ebd0d7 100644
--- a/packet.c
+++ b/packet.c
@@ -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;