From 57a91595dd2cd80c5709efcb54b7a33b723ff813 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 6 Aug 2010 13:54:23 +0200 Subject: [PATCH] amqp plugin: Enable the "StoreRates" option only when configuring a "Publish" block. --- src/amqp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amqp.c b/src/amqp.c index 1924ce73..c136c00d 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -687,7 +687,7 @@ static int camqp_config_connection (oconfig_item_t *ci, /* {{{ */ else conf->delivery_mode = CAMQP_DM_VOLATILE; } - else if (strcasecmp ("StoreRates", child->key) == 0) + else if ((strcasecmp ("StoreRates", child->key) == 0) && publish) status = cf_util_get_boolean (child, &conf->store_rates); else WARNING ("amqp plugin: Ignoring unknown " -- 2.11.0