strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed double free of host in sadb_address2ts
[strongswan.git]
/
src
/
charon
/
plugins
/
kernel_pfkey
/
kernel_pfkey_ipsec.c
diff --git
a/src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
b/src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
index
70b1b09
..
89ff022
100644
(file)
--- a/
src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
+++ b/
src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
@@
-578,7
+578,6
@@
static traffic_selector_t* sadb_address2ts(struct sadb_address *address)
host = host_create_from_sockaddr((sockaddr_t*)&address[1]) ;
ts = traffic_selector_create_from_subnet(host, address->sadb_address_prefixlen,
address->sadb_address_proto, host->get_port(host));
- host->destroy(host);
return ts;
}