mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 23:46:51 +01:00
BugFix: stop Process mechanism of ProcessFramework.
Update: DISCONNECT procedure for NonActive clients. Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -102,9 +102,7 @@ bool ClientList::authorize(const char* fileName)
|
||||
}
|
||||
pos = data.find_first_of(",");
|
||||
string id = data.substr(0, pos);
|
||||
|
||||
clientId.cstring = strdup(id.c_str());
|
||||
|
||||
string addr = data.substr(pos + 1);
|
||||
|
||||
if (netAddr.setAddress(&addr) == 0)
|
||||
@@ -117,6 +115,7 @@ bool ClientList::authorize(const char* fileName)
|
||||
{
|
||||
WRITELOG("Invalid address %s\n", data.c_str());
|
||||
}
|
||||
free(clientId.cstring);
|
||||
}
|
||||
fclose(fp);
|
||||
_authorize = true;
|
||||
|
||||
Reference in New Issue
Block a user