pluto: Fixed byte-order of ports in traffic selectors.
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ static traffic_selector_t *traffic_selector_from_subnet(const ip_subnet *client,
|
|||||||
host_t *net;
|
host_t *net;
|
||||||
net = host_create_from_sockaddr((sockaddr_t*)&client->addr);
|
net = host_create_from_sockaddr((sockaddr_t*)&client->addr);
|
||||||
ts = traffic_selector_create_from_subnet(net, client->maskbits, proto,
|
ts = traffic_selector_create_from_subnet(net, client->maskbits, proto,
|
||||||
portof(&client->addr));
|
net->get_port(net));
|
||||||
return ts;
|
return ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user