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:
769446a
)
DHCP plugin returns virtual IPs for IPv4 requests only
author
Martin Willi
<martin@revosec.ch>
Mon, 27 Aug 2012 14:26:28 +0000
(16:26 +0200)
committer
Martin Willi
<martin@revosec.ch>
Thu, 30 Aug 2012 14:43:44 +0000
(16:43 +0200)
src/libcharon/plugins/dhcp/dhcp_provider.c
patch
|
blob
|
history
diff --git
a/src/libcharon/plugins/dhcp/dhcp_provider.c
b/src/libcharon/plugins/dhcp/dhcp_provider.c
index
3d72b44
..
e46cc4d
100644
(file)
--- a/
src/libcharon/plugins/dhcp/dhcp_provider.c
+++ b/
src/libcharon/plugins/dhcp/dhcp_provider.c
@@
-84,7
+84,7
@@
METHOD(attribute_provider_t, acquire_address, host_t*,
private_dhcp_provider_t *this, char *pool,
identification_t *id, host_t *requested)
{
- if (streq(pool, "dhcp"))
+ if (streq(pool, "dhcp")
&& requested->get_family(requested) == AF_INET
)
{
dhcp_transaction_t *transaction, *old;
host_t *vip;
@@
-110,7
+110,7
@@
METHOD(attribute_provider_t, release_address, bool,
private_dhcp_provider_t *this, char *pool,
host_t *address, identification_t *id)
{
- if (streq(pool, "dhcp"))
+ if (streq(pool, "dhcp")
&& address->get_family(address) == AF_INET
)
{
dhcp_transaction_t *transaction;