finish iv

Change-Id: I8fc42d1fabbd21ae4f699d7b1c31e9218fec9f9e
diff --git a/src/ca-module.cpp b/src/ca-module.cpp
index b3b1ade..2623a10 100644
--- a/src/ca-module.cpp
+++ b/src/ca-module.cpp
@@ -420,8 +420,8 @@
     // TODO: where is renew?
   }
   else {
-    m_storage->updateRequest(*requestState);
     payload = challengetlv::encodeDataContent(*requestState);
+    m_storage->updateRequest(*requestState);
     NDN_LOG_TRACE("No failure no success. Challenge moves on");
   }