From a2e0dc92cefaf5654928786bdf5cca7a3706e5d0 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 23 May 2018 17:22:45 +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 bee87fb6..797b7337 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; }