diff --git a/libfreshclam/libfreshclam.c b/libfreshclam/libfreshclam.c index 55e6b1d7f8..860ffd27d5 100644 --- a/libfreshclam/libfreshclam.c +++ b/libfreshclam/libfreshclam.c @@ -804,14 +804,16 @@ fc_error_t fc_update_databases( logg(LOGG_INFO, " CDN and your own network.\n"); logg(LOGG_INFO, " 4. Please do not open a ticket asking for an exemption from the rate limit,\n"); logg(LOGG_INFO, " it will not be granted.\n"); - logg(LOGG_INFO, " 5. If you have verified that you are not blocked due to your region, and have\n"); - logg(LOGG_INFO, " not exceeded the rate limit, please provide the following cf-ray ids when\n"); - logg(LOGG_INFO, " submitting a ticket.\n"); - logg(LOGG_INFO, "\n CF-RAYS=========================================================================\n"); - for (i = 0; i < g_rayLst.cnt; i++){ - logg(LOGG_INFO, " cf-ray: %s\n", g_rayLst.ids[i]); - } + if (g_rayLst.cnt > 0) { + logg(LOGG_INFO, " 5. If you have verified that you are not blocked due to your region, and have\n"); + logg(LOGG_INFO, " not exceeded the rate limit, please provide the following cf-ray ids when\n"); + logg(LOGG_INFO, " submitting a ticket.\n"); + logg(LOGG_INFO, "\n CF-RAYS=========================================================================\n"); + for (i = 0; i < g_rayLst.cnt; i++){ + logg(LOGG_INFO, " cf-ray: %s\n", g_rayLst.ids[i]); + } logg(LOGG_INFO, "\n"); + } logg(LOGG_WARNING, "You are still on cool-down until after: %s\n", retry_after_string); status = FC_SUCCESS;