Roger A. Light
94d61305fa
Fix bridge not respecting receive-maximum when reconnecting with MQTT v5.
2021-11-09 13:53:37 +00:00
Roger A. Light
9e5b850181
Check for NULL before strcmp.
2021-10-24 14:23:57 +01:00
Roger Light
5cae4d1d81
Fix broker sending duplicate CONNACK on failed MQTT v5 reauthentication.
...
Closes #2339 . Thanks to hvxl.
2021-10-12 22:33:05 +01:00
Roger A. Light
be80a3f4d0
Fix client id not showing in log on failed connections, where possible.
2021-10-06 10:09:38 +01:00
Roger A. Light
a1a190b482
Pointless whitespace tidy.
2021-10-05 15:20:37 +01:00
Roger A. Light
7061569bf4
Don't send retained messages when a shared subscription is made.
2021-10-04 16:26:58 +01:00
Roger A. Light
7b58eee414
Fix problem parsing config files with Windows line endings.
...
Closes #2297 . Thanks to all the people who commented there!
2021-09-23 11:40:40 +01:00
Roger A. Light
330bf6efdc
Various fixes around inflight quota management.
...
Closes #2306 . Thanks to canique.
2021-09-22 17:20:24 +01:00
Roger A. Light
7551a29985
Fix LWT messages not being delivered if per_listener_settings
was set to true
...
Closes #2314 . Thanks to Marc Hamel.
2021-09-21 22:51:25 +01:00
Roger A. Light
d942ed7eec
Fix max_keepalive
option not being able to be set to 0.
2021-09-09 12:19:13 +01:00
Roger A. Light
37b5aedcb6
Fix for #575314 .
...
Incoming QoS 2 messages that had not completed the QoS flow were not being
checked for ACL access when a clean session=False client was reconnecting.
Closes #575314 .
2021-08-30 16:14:27 +01:00
Roger A. Light
9d95cba95e
Fix leak.
2021-08-30 14:11:23 +01:00
Roger Light
32af599c81
Fix $share subscriptions not being recovered for durable clients.
...
If a plugin had granted ACL subscription access to a
durable/non-clean-session client, then removed that access, the client would
keep its existing subscription. This has been fixed.
2021-08-26 12:17:26 +01:00
Roger A. Light
376226c129
Build warning fixes.
2021-08-26 10:54:03 +01:00
Roger A. Light
9b25dd3b0d
libressl build fixes.
...
Closes #2198 . Thanks to Theo Buehler.
2021-08-24 13:53:03 +01:00
Roger Light
ba2ca33671
Strict protocol compliance fixes, and extensive test suite.
2021-08-23 23:19:28 +01:00
Roger Light
526b8430e2
Fix for #2283 .
...
Closes #2283 . Thanks to Heath Raftery.
2021-08-21 20:14:51 +01:00
Roger Light
93b2232bb9
Apply max_keepalive to MQTT v3.1.1 and v3.1 clients.
2021-08-20 23:27:14 +01:00
Roger A. Light
ea371564e7
Disable TLS 1.3 when using TLS-PSK, because it isn't correctly config'd.
2021-08-19 17:26:04 +01:00
Roger A. Light
0143db71a1
Fix TLS certs and PSK not being able to be config'd at the same time.
2021-08-19 17:26:04 +01:00
Roger A. Light
2ace833eee
Remove duplicate line
2021-08-17 12:26:52 +01:00
Roger A. Light
4e146b7b53
Fix possible out of bounds memory reads when reading configuration.
...
This would happen with a corrupt/crafted configuration file. Unless your
configuration file is writable by untrusted users this is not a risk.
Closes #567213 . Thanks to Roland Sako.
2021-07-22 16:43:06 +01:00
Roger Light
e3158e2b09
Merge pull request #2247 from Begasus/haiku
...
Haiku build fixes
2021-07-09 14:16:21 +01:00
begasus
0f49a9ff5b
Haiku build fixes
...
Signed-off-by: begasus <begasus@gmail.com>
2021-07-07 12:26:20 +00:00
Roger A. Light
99d7299b24
Fix qos0 messages not being queued when queue_qos0_message enabled.
...
Closes #2224 . Thanks to Luigi Caiffa.
2021-06-09 13:21:27 +01:00
Roger A. Light
42163634c7
Fix leak on crafted MQTT v5 CONNECT.
...
If a MQTT v5 client connects with a crafted CONNECT packet a memory leak
will occur.
Thanks to Kathrin Kleinhammer.
2021-06-08 22:26:09 +01:00
Roger A. Light
403691ce40
Add missing return types.
2021-06-08 22:25:59 +01:00
Roger A. Light
238b68686a
Fix bridge pollfd corruption on Windows.
...
Closes #2173 . Thanks to Niclas Lindgren.
2021-06-08 13:29:29 +01:00
Roger A. Light
104b94db57
Fix non-reachable bridge blocking the broker on Windows.
...
Closes #2172 . Thanks to Niclas Lindgren.
2021-06-08 12:07:24 +01:00
Roger A. Light
5851713f3e
Refactor to remove duplicate code.
2021-06-08 12:00:05 +01:00
Roger A. Light
0e1388a615
Fix the return of plugin__handle_message not being fully handled.
2021-05-21 14:54:28 +01:00
Roger A. Light
90e3b287de
Remove redundant check, this is handled in send__pubrec.
2021-05-21 14:18:27 +01:00
Roger A. Light
16fb0025a7
Improve QoS 0 outgoing packet queueing.
2021-05-18 16:53:45 +01:00
Roger A. Light
0db306ef6b
Fix compiler warning.
2021-05-17 17:16:01 +01:00
Roger A. Light
4a08626f43
Only a single call to lws_write() is required.
2021-05-17 17:16:01 +01:00
Roger Light
880df7360d
Fix bridge not reconnectng if the first reconnection attempt fails.
...
Closes #2207 . Thanks to Abilio Marques.
2021-05-17 00:49:44 +01:00
Roger A. Light
501690d312
Handle identifier==NULL case.
2021-04-28 09:21:50 +01:00
Roger Light
e1c8f09372
Remove C++ style comments.
2021-04-25 22:26:12 +01:00
Roger Light
5434931dbc
Merge branch 'fixes' of git://github.com/bk138/mosquitto into bk138-fixes
2021-04-25 22:10:30 +01:00
Roger A. Light
0446bba7df
Fix some conversion warnings.
2021-04-19 09:37:20 +01:00
Christian Beier
fe10226cc9
Fix building with Visual Studio 2008
...
This older Microsoft compiler does not support mixing declarations and
code and misses some error defines. This commit enables building with
VS2008 by moving up some variable declarations and defining error
codes to their WinSock counterparts in case they're not defined.
Signed-off-by: Christian Beier <info@christianbeier.net>
2021-04-18 21:23:25 +02:00
Roger Light
702aaabee2
mux init must happen before bridges are started.
2021-04-14 23:06:53 +01:00
Roger Light
c418b57d0f
Fix possible crash having just upgraded from 1.6.
...
Happens if `per_listener_settings true` is set, and a SIGHUP is sent to
the broker before a client has reconnected to the broker.
Closes #2167 . Thanks to momoskitto.
2021-04-08 23:29:46 +01:00
Roger A. Light
983dc14f2c
Provide help for users trying to bind to privileged ports.
...
Closes #2098 .
2021-04-03 11:33:57 +01:00
Roger A. Light
6a4a547892
Fix segfault on client sending malformed CONNACk.
...
CVE-xxxx-xxxx: If an authenticated client connected with MQTT v5 sent a
malformed CONNACK message to the broker a NULL pointer dereference occurred,
most likely resulting in a segfault. This will be updated with the CVE
number when it is assigned.
Affects versions 2.0.0 to 2.0.9 inclusive.
Closes #2163 . Thanks to Bryan Pearson.
2021-04-03 11:14:27 +01:00
Roger Light
2de8c15bc9
Minor build fixes.
2021-03-21 09:18:43 +00:00
Roger Light
cca41d176d
Fix inconsistent sign in log__printf declaration.
2021-03-20 19:16:43 +00:00
Roger Light
9989a3502d
Add link to authentication options if running in local only mode.
2021-03-20 10:33:58 +00:00
Roger Light
a6bb8d3611
Don't over write new receive-maximum if a v5 client connects.
...
This is for when it takes over an old session.
Closes #2134 . Thanks to Frantisek Fuka.
2021-03-14 22:12:10 +00:00
Roger A. Light
891be8c2fe
Fix max_keepalive
option not applying to keepalive=0.
...
Closes #2117 . Thanks to David Nadlinger.
2021-03-11 19:58:47 +00:00