diff --git a/src/libs/zbxalerter/alert_syncer.c b/src/libs/zbxalerter/alert_syncer.c index 95c9f1e25cb..27151cd3f95 100644 --- a/src/libs/zbxalerter/alert_syncer.c +++ b/src/libs/zbxalerter/alert_syncer.c @@ -775,12 +775,9 @@ static int am_db_flush_results(zbx_am_db_t *amdb) zbx_ipc_message_free(message); if (SUCCEED != zbx_ipc_async_socket_recv(&amdb->am, 1, &message) || NULL == message) - { - zabbix_log(LOG_LEVEL_WARNING, "cannot retrieve alert results"); - return 0; - } + zabbix_log(LOG_LEVEL_INFORMATION, "cannot retrieve alert results"); } - while (ZBX_IPC_ALERTER_RESULTS != message->code); + while (message == NULL || ZBX_IPC_ALERTER_RESULTS != message->code); zbx_vector_events_tags_create(&update_events_tags);