You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a secure URI, like mqtts://... is supplied to the the serverURIs field of the MQTTAsync_connectOptions, but no SSL options given to the connect options (i.e. conn_opts.ssl == NULL), then the program segfaults.
To Reproduce
Take a sample app, like MQTTAsync_publish.c
Set the URI as an empty string in the call to create the client:
Describe the bug
If a secure URI, like
mqtts://...
is supplied to the theserverURIs
field of theMQTTAsync_connectOptions
, but no SSL options given to the connect options (i.e.conn_opts.ssl == NULL
), then the program segfaults.To Reproduce
Take a sample app, like MQTTAsync_publish.c
Set the URI as an empty string in the call to create the client:
The add a secure URI to the connect options without specifying SSL options, like:
The call to
MQTTAsync_connect()
crashes with a segfault.Expected behavior
Return -6 from the call to
MQTTAsync_connect()
in this case.The text was updated successfully, but these errors were encountered: