Fixing the bug in issuing intro cert in the policy manager
Fixing the conversion bug in intro-cert
diff --git a/src/sync-intro-certificate.cc b/src/sync-intro-certificate.cc
index 5c966c8..e9587e9 100644
--- a/src/sync-intro-certificate.cc
+++ b/src/sync-intro-certificate.cc
@@ -113,7 +113,7 @@
if(i >= certificateName.size())
throw SecException("Wrong SyncIntroCertificate Name!");
- m_keyName = certificateName.getSubName(keyNameStart, keyNameEnd);
+ m_keyName = certificateName.getSubName(keyNameStart, keyNameEnd - keyNameStart);
string typeComponent = certificateName.get(certificateName.size() - 2).toUri();
if(typeComponent == string("PRODUCER"))