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 26e6bfb commit a4c67d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/security_default.c
Expand Up @@ -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){
Expand Down

0 comments on commit a4c67d0

Please sign in to comment.