pluto: Fixed byte-order of ports in traffic selectors.
authorTobias Brunner <tobias@strongswan.org>
Tue, 3 Aug 2010 14:40:41 +0000 (16:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Sep 2010 17:04:23 +0000 (19:04 +0200)
src/pluto/kernel.c

index 164e428..8b22bc2 100644 (file)
@@ -180,7 +180,7 @@ static traffic_selector_t *traffic_selector_from_subnet(const ip_subnet *client,
        host_t *net;
        net = host_create_from_sockaddr((sockaddr_t*)&client->addr);
        ts = traffic_selector_create_from_subnet(net, client->maskbits, proto,
-                                                                                        portof(&client->addr));
+                                                                                        net->get_port(net));
        return ts;
 }