Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2022-06-20 12:16:51 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2022-06-20 12:16:51 +0300
commita11d4b6808f8ab373c0f52ac748d3a12919a28b7 (patch)
tree3159059aa38730ba966935757222a49e9a85e452
parent9564628dad2e5db7a251a91432e1c72c6ab55b52 (diff)
........S. [ZBX-21145] fixed host prototype lookup result checking
-rw-r--r--src/libs/zbxdbhigh/host.c2
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;