Skip to content

Commit

Permalink
Fix local bridges being disconnected on SIGHUP.
Browse files Browse the repository at this point in the history
Closes #1942. Thanks to charlemagnelasse.
  • Loading branch information
ralight committed Dec 17, 2020
1 parent 00c6820 commit 1d92184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Expand Up @@ -7,6 +7,7 @@ Broker:
Closes #1960.
- Fix QoS 0 messages not being delivered if max_queued_messages was set to 0.
Closes #1956.
- Fix local bridges being disconnected on SIGHUP. Closes #1942.

Clients:
- Fix mosquitto_sub being unable to terminate with Ctrl-C if a successful
Expand Down
4 changes: 4 additions & 0 deletions src/security_default.c
Expand Up @@ -1112,6 +1112,10 @@ int mosquitto_security_apply_default(void)
#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){
Expand Down

0 comments on commit 1d92184

Please sign in to comment.