From 6ddabe4ead9a6c7041ef3a28627deefdc611ef32 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 10 Jan 2023 10:45:43 +0100 Subject: [PATCH] fix #489, Address::operator== is broken --- include/amqpcpp/address.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/amqpcpp/address.h b/include/amqpcpp/address.h index 8732e49d..bbbb6d05 100644 --- a/include/amqpcpp/address.h +++ b/include/amqpcpp/address.h @@ -333,8 +333,8 @@ class Address // portnumber must match if (_port != that._port) return false; - // and finally the vhosts, they must match too - if (_vhost == that._vhost) return false; + // and the vhosts, they must match too + if (_vhost != that._vhost) return false; // and the options as well return _options == that._options;