From c4f4b5c3c4614f9ba27b134f838634f43e30527d Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 23 May 2018 17:24:42 +0800 Subject: [PATCH] sshd: fix timingsafe_bcmp https://github.com/warmcat/libwebsockets/issues/1288 --- plugins/ssh-base/sshd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ssh-base/sshd.c b/plugins/ssh-base/sshd.c index bee87fb6d..797b7337c 100644 --- a/plugins/ssh-base/sshd.c +++ b/plugins/ssh-base/sshd.c @@ -103,7 +103,7 @@ lws_timingsafe_bcmp(const void *a, const void *b, uint32_t len) uint8_t sum = 0; while (len--) - sum |= (*pa ^ *pb); + sum |= (*pa++ ^ *pb++); return sum; }