explicitly set CanBePrefix where needed
refs #4582
Change-Id: If79d8042502c4370197ca2f04c9acebb97261390
diff --git a/src/clients/query.cpp b/src/clients/query.cpp
index ab70fff..9bc5c60 100644
--- a/src/clients/query.cpp
+++ b/src/clients/query.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2017, Regents of the University of California.
+ * Copyright (c) 2014-2021, Regents of the University of California.
*
* This file is part of NDNS (Named Data Networking Domain Name Service).
* See AUTHORS.md for complete list of NDNS authors and contributors.
@@ -72,8 +72,8 @@
.append(this->m_rrLabel)
.append(this->m_rrType);
- Interest interest;
- interest.setName(name);
+ Interest interest(name);
+ interest.setCanBePrefix(true);
interest.setInterestLifetime(m_interestLifetime);
if (!m_delegationList.empty()) {
interest.setForwardingHint(m_delegationList);