BugFix: MQTT packets wiith no payload can't be received collectly.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2017-07-28 14:33:41 +09:00
parent 3425a4d441
commit 7099531e0e
3 changed files with 22 additions and 18 deletions

View File

@@ -306,6 +306,7 @@ bool Network::connect(const char* host, const char* port, const char* caPath, co
throw false;
}
if (!SSL_CTX_load_verify_locations(_ctx, caFile, caPath))
{
ERR_error_string_n(ERR_get_error(), errmsg, sizeof(errmsg));