ike: Use proper hostname(s) when name resolution failed

Was wrong since 0edce68767.

Fixes #440.
This commit is contained in:
Tobias Brunner
2014-01-23 10:03:50 +01:00
parent 72ffb20318
commit be8af56e7a
+1 -1
View File
@@ -1174,7 +1174,7 @@ METHOD(ike_sa_t, initiate, status_t,
host_t *host;
char *addr;
addr = this->ike_cfg->get_my_addr(this->ike_cfg);
addr = this->ike_cfg->get_other_addr(this->ike_cfg);
host = this->ike_cfg->resolve_other(this->ike_cfg, AF_UNSPEC);
is_anyaddr = host && host->is_anyaddr(host);
DESTROY_IF(host);