From 40752254660c1de138f3ea430a99477a62ee464a Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 18 Apr 2008 10:30:52 +0000 Subject: [PATCH] fixed peer config equality check --- src/charon/config/peer_cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/charon/config/peer_cfg.c b/src/charon/config/peer_cfg.c index ca9394797..9c32a2e43 100644 --- a/src/charon/config/peer_cfg.c +++ b/src/charon/config/peer_cfg.c @@ -471,7 +471,8 @@ static bool equals(private_peer_cfg_t *this, private_peer_cfg_t *other) (this->virtual_ip == other->virtual_ip || (this->virtual_ip && other->virtual_ip && this->virtual_ip->equals(this->virtual_ip, other->virtual_ip))) && - (this->pool == other->pool || streq(this->pool, other->pool)) && + (this->pool == other->pool || + (this->pool && other->pool && streq(this->pool, other->pool))) && this->auth->equals(this->auth, other->auth) #ifdef ME && this->mediation == other->mediation &&