-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null pointer access if the server URI does not contain a ':' #8
Comments
With this fix MQTTAsync_Create does not fail with -2 any more. Signed-off-by: Juergen Kosel <juergen.kosel@softing.com> Conflicts: src/MQTTPersistenceDefault.c
For this bug, I think we should be ensuring that the port is specified. There is no default port assignment in the API, so not specifying the port in the serverURI is going to fail anyway. With this approach, creating a client without specifying the port will fail with, perhaps with a new -10 return code (BAD_SERVERURI). |
A default port is assigned in file MQTTProtocollOut.c function MQTTProtocol_addressPort(). |
This was fixed in the fix for issue #7 and works in the develop branch. |
migrated from Bugzilla #484386
status UNCONFIRMED severity normal in component MQTT-C for 1.2
Reported in version 1.2 on platform PC
Assigned to: Ian Craggs
Original attachment names and IDs:
On 2015-12-15 07:43:27 -0500, Juergen Kosel wrote:
The text was updated successfully, but these errors were encountered: