aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-12-13 10:39:36 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-20 17:31:19 +0100
commit5383b50d88bc716c7279af3143af8cc7b72fef9c (patch)
treed3e08cc6b7f39f997d9c3a05ba796390b0c51b2d /src
parentc9fc577a8ae8e9f8b0c454fb4cf0133077d390c8 (diff)
downloadstrongswan-5383b50d88bc716c7279af3143af8cc7b72fef9c.tar.bz2
strongswan-5383b50d88bc716c7279af3143af8cc7b72fef9c.tar.xz
Fixed missing shared_key initialization in main_mode task.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/libcharon/sa/tasks/main_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/sa/tasks/main_mode.c b/src/libcharon/sa/tasks/main_mode.c
index 1390f1b50..5e18bb7c6 100755
--- a/src/libcharon/sa/tasks/main_mode.c
+++ b/src/libcharon/sa/tasks/main_mode.c
@@ -666,7 +666,7 @@ static shared_key_t *lookup_shared_key(private_main_mode_t *this)
{
host_t *me, *other;
identification_t *my_id, *other_id;
- shared_key_t *shared_key;
+ shared_key_t *shared_key = NULL;
/* try to get a PSK for IP addresses */
me = this->ike_sa->get_my_host(this->ike_sa);