From a4c67d0cc9a88143614fbd842c3a3750294246bc Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 17 Dec 2020 14:02:01 +0000 Subject: [PATCH] Fix local bridges being disconnected on SIGHUP. Closes #1942. Thanks to charlemagnelasse. --- ChangeLog.txt | 2 ++ src/security_default.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 43966002..244709dd 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -2,6 +2,8 @@ Broker: - Fix crash on Windows if loading a plugin fails. Closes #1866. - Fix DH group not being set for TLS connections, which meant ciphers using DHE couldn't be used. Closes #1925. Closes #1476. +- Fix local bridges being disconnected on SIGHUP. Closes #1942. + - Fix listener not being reassociated with client when reloading a persistence file and `per_listener_settings true` is set and the client did not set a diff --git a/src/security_default.c b/src/security_default.c index 3eacce75..6e1f9cc5 100644 --- a/src/security_default.c +++ b/src/security_default.c @@ -1025,6 +1025,10 @@ int mosquitto_security_apply_default(struct mosquitto_db *db) #endif HASH_ITER(hh_id, db->contexts_by_id, context, ctxt_tmp){ + if(context->bridge){ + continue; + } + /* Check for anonymous clients when allow_anonymous is false */ if(db->config->per_listener_settings){ if(context->listener){