Commit dd6f1b7c authored by Ian Craggs's avatar Ian Craggs

Merge branch 'fixes' into develop

parents 5833994d e4129555
......@@ -2333,7 +2333,7 @@ int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions* options)
m->c->username = options->username;
m->c->password = options->password;
if (options->password)
m->c->passwordlen = strlen(options->password) + 1;
m->c->passwordlen = strlen(options->password);
else if (options->struct_version >= 5 && options->binarypwd.data)
{
m->c->password = options->binarypwd.data;
......
......@@ -1114,7 +1114,7 @@ static int MQTTClient_connectURI(MQTTClient handle, MQTTClient_connectOptions* o
m->c->username = options->username;
m->c->password = options->password;
if (options->password)
m->c->passwordlen = strlen(options->password) + 1;
m->c->passwordlen = strlen(options->password);
else if (options->struct_version >= 5 && options->binarypwd.data)
{
m->c->password = options->binarypwd.data;
......
......@@ -10,7 +10,7 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
make
python ../test/mqttsas2.py &
ctest -VV --timeout 600
kill %1
kill %1
killall mosquitto
fi
......@@ -22,6 +22,6 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make
python ../test/mqttsas2.py &
ctest -VV --timeout 600
kill %1
kill %1
killall mosquitto
fi
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