fixed double free of host in sadb_address2ts
[strongswan.git] / src / charon / plugins / kernel_pfkey / kernel_pfkey_ipsec.c
index 70b1b09..89ff022 100644 (file)
@@ -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;
 }