strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d61d191
)
fixed potential segfault in resolve_hosts
author
Martin Willi
<martin@strongswan.org>
Thu, 17 Jul 2008 11:06:31 +0000
(11:06 -0000)
committer
Martin Willi
<martin@strongswan.org>
Thu, 17 Jul 2008 11:06:31 +0000
(11:06 -0000)
src/charon/sa/ike_sa.c
patch
|
blob
|
history
diff --git
a/src/charon/sa/ike_sa.c
b/src/charon/sa/ike_sa.c
index
41e4316
..
9ffc8d9
100644
(file)
--- a/
src/charon/sa/ike_sa.c
+++ b/
src/charon/sa/ike_sa.c
@@
-1058,7
+1058,10
@@
static void resolve_hosts(private_ike_sa_t *this)
host->destroy(host);
host = charon->kernel_interface->get_source_addr(
charon->kernel_interface, this->other_host);
- host->set_port(host, IKEV2_UDP_PORT);
+ if (host)
+ {
+ host->set_port(host, IKEV2_UDP_PORT);
+ }
}
if (host)
{