Commit Graph

1085 Commits

Author SHA1 Message Date
Roger A. Light
e57342e7ac lib: Fix unix socket use on Windows
Closes #3521. Thanks to lt-havoc
2026-02-24 14:58:34 +00:00
Roger A. Light
ae19460c13 cmake: Only include C++ support when required
Thanks to Yann Morin
2026-02-24 10:26:50 +00:00
Roger A. Light
f5dd5d8519 Fix unix sockets support on Windows
Closes #3511. Thanks to lt-havoc.
2026-02-23 23:16:43 +00:00
Roger A. Light
7a1905006a Fix incorrect maximum-packet-size restriction for incoming packets.
Closes #3515. Thanks to Julian Graf.
2026-02-23 18:45:34 +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
0c16558320 cmake: Fix linker errors on AIX.
Thanks to Andreas Kempf.
2026-02-13 13:15:03 +00:00
Roger A. Light
01e175969e Fix libmosquitto_static cmake build. 2026-02-13 13:14:50 +00:00
Roger A. Light
d2435fc685 cmake: Simplify WITH_BUNDLED_DEPS handling 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
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
189e370313 Fix missing unix sockets support on Windows 2026-02-11 23:45:25 +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
0d89a649c2 More warning fixes 2026-01-23 09:26:09 +00:00
Roger A. Light
7de6cb42ef Compiler warning fixes 2026-01-23 08:44:34 +00:00
Roger A. Light
758bf6a127 Minor compiler warning fixes 2026-01-21 16:58:42 +00:00
Roger A. Light
3093333217 Remove ENGINE_cleanup as it does nothing any more.
Closes #3450. Thanks to Paolo Patruno
2026-01-20 10:17:06 +00:00
Roger A. Light
79a13f6e10 Fix --insecure and bridge_insecure
Closes #3449. Thanks to Christoph Krey
2026-01-19 11:45:55 +00:00
Roger A. Light
d346179137 Formatting 2026-01-18 22:45:10 +00:00
Roger A. Light
81a9385877 Merge branch 'fixes' into develop 2026-01-15 00:49:53 +00:00
Roger A. Light
3ab1bae406 Merge branch 'fixes' 2026-01-14 19:10:52 +00:00
Roger A. Light
ae7cf71dcf Fix errno setting on Windows
Closes #3424
2026-01-07 15:04:06 +00:00
Roger A. Light
413d84b91d Make condition more explicit for what is actually required
Closes oss-fuzz #445970862
2025-12-09 13:25:34 +00:00
Rich Mattes
ab4ac42b90 Fix libdir location in pkgconfig files.
The pkgconfig files currently hardcode the library directory as
${prefix}/lib, but the library installation directory in config.mk is
set as lib${LIB_SUFFIX}.  This causes a mismatch between the library
installation directory and the pkgconfig file on redhat-based 64-bit
systems.

This commit remedies the issue for both the Makefile and CMake build by
modifying the pkgconfig files to use CMAKE_INSTALL_LIBDIR instead of
"lib".  In the CMake system, this directly reflects the installation
path.  The Makefiles were modified to replace CMAKE_INSTALL_LIBDIR with
lib${LIB_SUFFIX}, matching the libdir definition in config.mk and
following the pattern used in defining the prefix.

Signed-off-by: Rich Mattes <richmattes@gmail.com>
2025-12-08 20:57:17 +00:00
Rich Mattes
c34be255d3 Fix libdir location in pkgconfig files.
The pkgconfig files currently hardcode the library directory as
${prefix}/lib, but the library installation directory in config.mk is
set as lib${LIB_SUFFIX}.  This causes a mismatch between the library
installation directory and the pkgconfig file on redhat-based 64-bit
systems.

This commit remedies the issue for both the Makefile and CMake build by
modifying the pkgconfig files to use CMAKE_INSTALL_LIBDIR instead of
"lib".  In the CMake system, this directly reflects the installation
path.  The Makefiles were modified to replace CMAKE_INSTALL_LIBDIR with
lib${LIB_SUFFIX}, matching the libdir definition in config.mk and
following the pattern used in defining the prefix.

Signed-off-by: Rich Mattes <richmattes@gmail.com>
2025-12-08 20:51:49 +00:00
Roger A. Light
f7852e5be4 read_header is only ever called when all data has been read
This means setting everything back to 0 is the correct approach
2025-11-28 00:49:48 +00:00
Roger A. Light
58c34669a5 Refactor oversize incoming packet check 2025-11-27 12:24:12 +00:00
Roger A. Light
6fb01c7337 Add broker logging for protocol errors 2025-11-26 14:34:10 +00:00
Roger A. Light
49d71f2bd9 Simplify stopping the thread in libmosquitto 2025-11-23 23:11:56 +00:00
Roger A. Light
445f27b0d6 Unconditionally init/destroy client mutexes
This removes the remote chance that we may init but then not destroy, or
destroy after not initing
2025-11-01 08:19:17 +00:00
Roger A. Light
0ba2436589 Remove unused srand() etc. functions 2025-10-15 11:49:13 +01:00
Roger A. Light
1bc14e6aa8 Support parsing future MQTT v5 properties with id value > 128 2025-10-13 22:23:12 +01:00
Roger A. Light
a15020311c Set verify hostname if tls_use_os_certs is true. 2025-10-13 22:02:50 +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
0e04dfc032 Check *_get_ex_data() and *_set_ex_data() return values.
Closes #3389. Thanks to Qingpeng Du.
2025-10-11 22:16:15 +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
84aeb282e3 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:02:09 +01:00
Roger A. Light
f4ccfd55f4 Fix spurious compiler warning 2025-09-17 12:49:41 +01:00
Roger A. Light
4c24b92e34 Formatting: Apply to C++ files 2025-09-17 12:48:02 +01:00
Roger A. Light
460995652e Formatting: Apply to C headers 2025-09-17 12:48:02 +01:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
48b76e49f8 Formatting: Misc automatic formatting changes 2025-09-17 12:03:06 +01:00
Roger A. Light
883fdb2ad2 Formatting: Double indent continuation 2025-09-17 12:03:06 +01:00
Roger A. Light
5e20df0031 Simplify preprocessor macros 2025-09-17 12:03:06 +01:00
Roger A. Light
9d95bf24c3 Formatting: Indent fixes 2025-09-17 12:03:06 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Roger A. Light
5f2717cc9d Remove chance any includes happen before _GNU_SOURCE is set 2025-08-27 14:09:31 +01:00
Roger A. Light
c64273f663 Fix build on Mac OS, introduce Mac OS CI workflow
Closes #3312
2025-08-14 08:38:45 +01:00
Roger A. Light
d27632a206 Only cleanup TLS if it is initialised.
Closes #2975
2025-08-09 22:44:53 +01:00
Roger A. Light
a35efd9c0d Only cleanup TLS if it is initialised.
Closes #2975
2025-08-09 22:43:11 +01:00