Update state before triggering DPD, as we cancel it if PASSIVE
authorMartin Willi <martin@revosec.ch>
Fri, 20 Jan 2012 11:21:48 +0000 (12:21 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:38 +0000 (17:31 +0100)
src/libcharon/sa/ike_sa.c

index fd43cab..5a27de5 100644 (file)
@@ -672,6 +672,7 @@ METHOD(ike_sa_t, set_state, void,
                                {
                                        if (supports_extension(this, EXT_DPD))
                                        {
+                                               this->state = state;
                                                send_dpd(this);
                                        }
                                        else