strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab7ed97
)
fixed peer config equality check
author
Martin Willi
<martin@strongswan.org>
Fri, 18 Apr 2008 10:30:52 +0000
(10:30 -0000)
committer
Martin Willi
<martin@strongswan.org>
Fri, 18 Apr 2008 10:30:52 +0000
(10:30 -0000)
src/charon/config/peer_cfg.c
patch
|
blob
|
history
diff --git
a/src/charon/config/peer_cfg.c
b/src/charon/config/peer_cfg.c
index
ca93947
..
9c32a2e
100644
(file)
--- 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 &&