fix bug that catalog crashes when handling Interests that carries sequence number
Change-Id: I26564e6d5f7b0c31f2efa07558af81fd0e5218fe
diff --git a/catalog/src/query/query-adapter.hpp b/catalog/src/query/query-adapter.hpp
index ce67f4d..2589e1f 100644
--- a/catalog/src/query/query-adapter.hpp
+++ b/catalog/src/query/query-adapter.hpp
@@ -503,7 +503,7 @@
// catalog has generated some data, but still working on it
return;
}
- interestPtr = queryInterest.shared_from_this();
+ interestPtr = std::make_shared<ndn::Interest>(queryInterest);
}
std::thread queryThread(&QueryAdapter<DatabaseHandler>::runJsonQuery,