Fix bug in getEntryForRegisteredPrefix: properly check size of registeredPrefixTable_.
diff --git a/ndn-cpp/node.cpp b/ndn-cpp/node.cpp
index 6a60e3b..92cd538 100644
--- a/ndn-cpp/node.cpp
+++ b/ndn-cpp/node.cpp
@@ -177,7 +177,7 @@
 {
   int iResult = -1;
     
-	for (unsigned int i = 0; i < pit_.size(); ++i) {
+	for (unsigned int i = 0; i < registeredPrefixTable_.size(); ++i) {
 		if (registeredPrefixTable_[i]->getPrefix()->match(name)) {
       if (iResult < 0 || 
           registeredPrefixTable_[i]->getPrefix()->getComponentCount() > registeredPrefixTable_[iResult]->getPrefix()->getComponentCount())