diff --git a/ChangeLog.txt b/ChangeLog.txt index dbe24208..579944dc 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -19,6 +19,7 @@ Broker: - Broker will log warnings if sensitive files are world readable/writable, or if the owner/group is not the same as the user/group the broker is running as. In future versions the broker will refuse to open these files. +- mosquitto_memcmp_const is now more constant time. Client library: - Use CLOCK_BOOTTIME when available, to keep track of time. This solves the diff --git a/plugins/dynamic-security/auth.c b/plugins/dynamic-security/auth.c index 1f62e1fb..03e4f6b9 100644 --- a/plugins/dynamic-security/auth.c +++ b/plugins/dynamic-security/auth.c @@ -163,9 +163,7 @@ static int memcmp_const(const void *a, const void *b, size_t len) if(!a || !b) return 1; for(i=0; i