Fixed missing shared_key initialization in main_mode task.
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 Dec 2011 09:39:36 +0000 (10:39 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:19 +0000 (17:31 +0100)
src/libcharon/sa/tasks/main_mode.c

index 1390f1b..5e18bb7 100755 (executable)
@@ -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);