diff --git a/src/amqp.c b/src/amqp.c
index cd07023f4e762cf4c5945c902ebb4cec76ce02a5..c54a1e09036dd289a7ba07819eced763c3edf971 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
status = cf_util_get_string(child, &conf->password);
else if (strcasecmp("Exchange", child->key) == 0)
status = cf_util_get_string(child, &conf->exchange);
- else if ((strcasecmp("ExchangeType", child->key) == 0) && !publish)
+ else if (strcasecmp("ExchangeType", child->key) == 0)
status = cf_util_get_string(child, &conf->exchange_type);
else if ((strcasecmp("Queue", child->key) == 0) && !publish)
status = cf_util_get_string(child, &conf->queue);