Louis Rannou 292ffc8951 mosquitto: bump to 2.0.21
Upgrade to mosquitto 2.0.21. Update the patch status for issue 2895 and create a
new patch for an issue introduced in 2.0.19 which causes connections to get down
when the clock is changed.

Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 2a27eacee2dc066365e32bafa66c666bcd93b3ca)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-10-01 13:53:12 +02:00

26 lines
732 B
Diff

From 2cb8129793b54de7c68efe1a4a8e91c788077a8e Mon Sep 17 00:00:00 2001
From: "Roger A. Light" <roger@atchoo.org>
Date: Thu, 1 May 2025 11:58:23 +0100
Subject: [PATCH] Fix incorrect reference clock being selected on startup on
Linux.
Closes #3238. Thanks to Eric Guin and karlri.
Closes #3168.
---
Upstream-Status: Backport 2.0.22
src/mosquitto.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/mosquitto.c b/src/mosquitto.c
index ff83ef3da..2aea55237 100644
--- a/src/mosquitto.c
+++ b/src/mosquitto.c
@@ -465,6 +465,7 @@ int main(int argc, char *argv[])
#endif
struct mosquitto *ctxt, *ctxt_tmp;
+ mosquitto_time_init();
#if defined(WIN32) || defined(__CYGWIN__)
if(argc == 2){
if(!strcmp(argv[1], "run")){