Merge branch 'master' of https://github.com/GermanAizek/libzt into GermanAizek-master

This commit is contained in:
Joseph Henry
2021-03-27 10:05:59 -07:00
3 changed files with 19 additions and 16 deletions

View File

@@ -161,7 +161,7 @@ int zts_start_with_identity(const char *key_pair_str, uint16_t key_buf_len,
serviceParameters *params = new serviceParameters();
params->port = port;
params->path = "";
params->path.clear();
Identity id;
if ((strlen(key_pair_str) > 32) && (key_pair_str[10] == ':')) {
@@ -285,6 +285,7 @@ int zts_start(const char *path, void (*callback)(void *), uint16_t port)
params->path = std::string(path);
if (params->path.length() == 0) {
delete params;
return ZTS_ERR_ARG;
}
int err;