Commit 7ad7e0b7 authored by Ian Craggs's avatar Ian Craggs

Fix issue #446

parent 97e397ef
...@@ -2790,7 +2790,7 @@ int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions* options) ...@@ -2790,7 +2790,7 @@ int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions* options)
if (m->c->sslopts->struct_version >= 2) if (m->c->sslopts->struct_version >= 2)
{ {
m->c->sslopts->verify = options->ssl->verify; m->c->sslopts->verify = options->ssl->verify;
if (m->c->sslopts->CApath) if (options->ssl->CApath)
m->c->sslopts->CApath = MQTTStrdup(options->ssl->CApath); m->c->sslopts->CApath = MQTTStrdup(options->ssl->CApath);
} }
} }
......
...@@ -1434,7 +1434,7 @@ static MQTTResponse MQTTClient_connectURI(MQTTClient handle, MQTTClient_connectO ...@@ -1434,7 +1434,7 @@ static MQTTResponse MQTTClient_connectURI(MQTTClient handle, MQTTClient_connectO
if (m->c->sslopts->struct_version >= 2) if (m->c->sslopts->struct_version >= 2)
{ {
m->c->sslopts->verify = options->ssl->verify; m->c->sslopts->verify = options->ssl->verify;
if (m->c->sslopts->CApath) if (options->ssl->CApath)
m->c->sslopts->CApath = MQTTStrdup(options->ssl->CApath); m->c->sslopts->CApath = MQTTStrdup(options->ssl->CApath);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment