Fix IKE_SA timeout debug output on 64bit platforms
authorMartin Willi <martin@revosec.ch>
Tue, 21 Feb 2012 13:05:11 +0000 (14:05 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 5 Mar 2012 17:06:13 +0000 (18:06 +0100)
src/libcharon/sa/ike_sa.c

index 0d8f38f..55657a3 100644 (file)
@@ -1549,10 +1549,11 @@ METHOD(ike_sa_t, reauth, status_t,
 #endif /* ME */
                        )
                {
-                       time_t now = time_monotonic(NULL);
+                       time_t del, now;
 
-                       DBG1(DBG_IKE, "IKE_SA will timeout in %V",
-                                &now, &this->stats[STAT_DELETE]);
+                       del = this->stats[STAT_DELETE];
+                       now = time_monotonic(NULL);
+                       DBG1(DBG_IKE, "IKE_SA will timeout in %V", &now, &del);
                        return FAILED;
                }
                else