Commit Graph

1092 Commits

Author SHA1 Message Date
Roger A. Light
d0152406e3 Fix will messages being incorrectly delayed.
This occured if a client set session-expiry-interval=0 when using
will-delay-interval>0.

Closes #3505. Thanks to Julian Graf.
2026-02-16 11:37:36 +00:00
Roger A. Light
3a0f46aa20 Fix outgoing maximum-packet-size limit check.
Closes #3503. Thanks to Julian Graf.
2026-02-15 23:00:32 +00:00
Roger A. Light
36be278391 Fix tests when building with WITH_WEBSOCKETS=no.
Closes #3502. Thanks to Matt Turner
2026-02-14 23:56:27 +00:00
Roger A. Light
01e175969e Fix libmosquitto_static cmake build. 2026-02-13 13:14:50 +00:00
Roger A. Light
43c2715042 Fix password length not being passed to MOSQ_EVT_BASIC_AUTH events.
Closes #3490. Thanks to thehouseisonfire.
2026-02-13 13:14:38 +00:00
Roger A. Light
64ccdc712d Fix missing SONAME.
Closes #3483. Thanks to Matt Turner.
2026-02-13 11:21:28 +00:00
Roger A. Light
da7d02690b Fix mosquitto_loop_start() leaving the mosq struct in an invalid state
This occurs if thread creation fails.

Closes #3496. Thanks to ehoffman2.
2026-02-13 08:33:32 +00:00
Roger A. Light
7958a85bae Fix potential crash if group id has no group name.
This can occur if reading a file in restricted mode and the group id
does not have an entry in /etc/groups.

Closes #3498. Thanks to Stefan Kranich.
2026-02-13 00:36:47 +00:00
Roger A. Light
2d2950a6a5 Fix makefile build with WITH_EDITLINE=no.
Closes #3484. Thanks to Matt Turner.
2026-02-11 15:48:10 +00:00
Roger A. Light
800ec38e22 Fix payload conversion in migrate_to_persist_sqlite.py
Closes #3492. Thanks to Marc Haesen.
2026-02-11 14:53:02 +00:00
Roger A. Light
5f2a45d96a Fix MOSQ_EVT_DISCONNECT being called before MOSQ_EVT_ACL_CHECK
This occurs for the will of that client.

Closes #3487. Thanks to ChrisBFX.
2026-02-11 14:43:57 +00:00
Roger A. Light
99fa50f30e Release prep for 2.1.2 2026-02-09 09:29:02 +00:00
Roger A. Light
20d9578077 Fix cmake linking of libwebsockets static/shared 2026-02-09 09:24:43 +00:00
Roger A. Light
a7f3f4c362 Forbid running with persistence true and a plugin at the same time. 2026-02-07 23:25:24 +00:00
Roger A. Light
8d0394a977 Add libedit to docker builds
Closes #3476
2026-02-06 15:05:21 +00:00
Roger A. Light
0a64c1de23 OpenBSD build fixes
Closes #3474. Thanks to Stuart Henderson
2026-02-06 14:50:20 +00:00
Roger A. Light
f58cecd04c 2.1.1 release prep 2026-02-04 22:27:34 +00:00
Roger A. Light
15a163eb09 Don't enforce receive-maximum on the broker 2026-02-04 21:37:51 +00:00
Roger A. Light
578d30e90f Fix max_connections not being honoured on libwebsockets listeners.
Closes #3455. Thanks to FelixPopp.
2026-02-03 23:54:11 +00:00
Roger A. Light
df7b703080 Fix $SYS load values not being published initially.
Closes #3459. Thanks to hessijames79
2026-02-03 09:28:18 +00:00
Roger A. Light
695df7719d Fix building with WITH_TLS=no
Closes #3469. Thanks to iTitou.
2026-02-03 09:23:27 +00:00
Roger A. Light
6edc3fb6a7 Fix incorrect linking of libmosquitto_common.so for the acl and password plugins
Closes #3460. Thanks to Jacopo Labardi
2026-02-03 08:29:50 +00:00
Roger A. Light
a1dcebd273 Fix plugin/global_plugin option not allowing space characters. 2026-02-03 00:19:59 +00:00
Roger A. Light
750c0f44d8 Fix address and port missing from disconnect messages 2026-02-02 23:50:42 +00:00
Roger A. Light
abf70df7e7 Fix changelog incorrect entries 2026-02-02 18:37:28 +00:00
Roger A. Light
16f41e61fc Add MOSQUITTO_UNSAFE_ALLOW_SYMLINKS env var
Setting this environment variable allows sensitive files to be read
through symlinks.

Closes #3461. Thanks to Jeff Cutsinger
2026-02-02 16:33:37 +00:00
Roger A. Light
c2c5ed9853 Fix PUID/PGID checking for docker 2026-01-30 09:41:31 +00:00
Roger A. Light
d2418a1687 Bump changelog and version 2026-01-29 15:00:47 +00:00
Roger A. Light
ebd3f228e0 Re-enable support for TLS 1.1 in the broker but not by default
Log a scary message if used.
2026-01-28 00:40:24 +00:00
Roger A. Light
81a9385877 Merge branch 'fixes' into develop 2026-01-15 00:49:53 +00:00
Roger A. Light
a2ad289e33 Bump version number 2026-01-14 19:12:03 +00:00
Roger A. Light
9f576d2a71 Set max_packet_size to 2,000,000 bytes by default 2026-01-13 12:15:46 +00:00
Roger A. Light
8ad81a9917 MOSQ_EVT_ACL_CHECK event is now passed message properties where possible.
Closes #3176.
2026-01-12 23:51:02 +00:00
Roger A. Light
dd57e98c6b Limit auto_id_prefix to 50 characters
Back port from develop.

Closes #3440. Thanks to Lukas Dresel
2026-01-12 22:15:52 +00:00
Roger A. Light
1c9500b554 Fix potential crash on loading corrupt obsolete persistence file
Fix potential crash on startup if a malicious/corrupt persistence file from
mosquitto 1.5 or earlier is loaded.

Closes #3439. Thanks to Lukas Dresel
2026-01-12 22:08:57 +00:00
Roger A. Light
a0fa07f9ed Check return value of openssl ASN1_string_[get0_]data() functions for NULL.
This prevents a crash in case of incorrect certificate handling in openssl.

Closes #3390. Thanks to Qingpeng Du.
2025-10-11 22:43:09 +01:00
Roger A. Light
f3a9fbb78c Check *_get_ex_data() and *_set_ex_data() return values.
Closes #3389. Thanks to Qingpeng Du.
2025-10-11 22:43:09 +01:00
Roger A. Light
a06d93610e Fix: session handling when per_listener_settings is set to true
Closes #2618
Closes #2526

Thanks to Reuben Miller and llamaonaskateboard.
2025-09-17 17:04:50 +01:00
Roger A. Light
ed9936e39d Exit broker on reload if acl_file or password_file detect invalid input
Also exit if a plugin returns an error code from the RELOAD event.

Closes #3350.
2025-08-23 08:52:24 +01:00
Roger A. Light
32c2b64081 Add --retain-handling to sub and rr clients 2025-08-11 12:17:17 +01:00
Roger A. Light
6967e5b890 Update for previous commit
Update functionality, man page, changelog, and add test.
2025-08-07 23:35:12 +01:00
Roger A. Light
7fe08adce6 Further changelog rearranging, and removing incorrect TLS1.1 info 2025-08-05 10:40:21 +01:00
Roger A. Light
08ef1f4bfd Changelog: Reformat whole file and rearrange entries for 2.1 2025-08-05 10:34:50 +01:00
n4n5
95fddeb1bf fix: typos
Signed-off-by: n4n5 <its.just.n4n5@gmail.com>
2025-08-04 18:52:42 +01:00
Roger A. Light
b8ffdb878e Merge from master 2025-07-25 19:13:51 +01:00
Roger A. Light
d61d25d488 Replace mosquitto__cmp_hostname_wildcard with openssl equivalent 2025-07-18 07:48:42 +01:00
Roger A. Light
f1ecfd4cc3 Bump changelog date 2025-07-11 17:54:11 +01:00
Roger A. Light
da34d3b6be Fix clients being incorrectly expired.
This would ocurr when they have keepalive == max_keepalive.

Closes #3226
Closes #3286
2025-07-11 17:53:19 +01:00
Roger A. Light
d785f84548 Fix crash on exit when using WITH_EPOLL=no.
Closes #3302. Thanks to Keyi-Wang.
2025-07-11 15:28:11 +01:00
Roger A. Light
598a3a2fc7 Add changelog entry
Closes #1211.
2025-07-11 14:52:59 +01:00