diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2022-06-20 12:16:51 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2022-06-20 12:16:51 +0300 |
commit | a11d4b6808f8ab373c0f52ac748d3a12919a28b7 (patch) | |
tree | 3159059aa38730ba966935757222a49e9a85e452 | |
parent | 9564628dad2e5db7a251a91432e1c72c6ab55b52 (diff) |
........S. [ZBX-21145] fixed host prototype lookup result checking
-rw-r--r-- | src/libs/zbxdbhigh/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c index 3a934e750d1..311db4ccc05 100644 --- a/src/libs/zbxdbhigh/host.c +++ b/src/libs/zbxdbhigh/host.c @@ -3057,7 +3057,7 @@ static void DBhost_prototypes_tags_make(zbx_vector_ptr_t *host_prototypes) break; } - if (NULL != host_prototype && host_prototype->hostid != hostid) + if (NULL == host_prototype || host_prototype->hostid != hostid) { THIS_SHOULD_NEVER_HAPPEN; continue; |