Fixed migration of NATD task
authorMartin Willi <martin@revosec.ch>
Tue, 20 Dec 2011 17:01:25 +0000 (18:01 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:29 +0000 (17:31 +0100)
src/libcharon/sa/ikev1/tasks/isakmp_natd.c

index 88ee327..4491017 100644 (file)
@@ -393,6 +393,7 @@ METHOD(task_t, migrate, void,
        private_isakmp_natd_t *this, ike_sa_t *ike_sa)
 {
        this->ike_sa = ike_sa;
+       this->keymat = (keymat_v1_t*)ike_sa->get_keymat(ike_sa);
        this->src_seen = FALSE;
        this->dst_seen = FALSE;
        this->src_matched = FALSE;