mirror of
https://github.com/emqx/neuron.git
synced 2026-10-22 01:05:56 +08:00
Merge pull request #397 from lixiumei123/main
Crash when getting a null tag in a read response
This commit is contained in:
@@ -231,6 +231,10 @@ void handle_read_resp(void *cmd_resp)
|
||||
neu_datatag_t *tag =
|
||||
neu_datatag_tbl_get(datatag_table, (datatag_id_t) iv->key);
|
||||
|
||||
if (tag == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
api_res.tags[i].name = tag->name;
|
||||
api_res.tags[i].error = NEU_ERR_SUCCESS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user