summaryrefslogtreecommitdiffstats
path: root/src/Daemon/RPM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Daemon/RPM.cpp')
-rw-r--r--src/Daemon/RPM.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Daemon/RPM.cpp b/src/Daemon/RPM.cpp
index f5377bc..87d2516 100644
--- a/src/Daemon/RPM.cpp
+++ b/src/Daemon/RPM.cpp
@@ -57,9 +57,10 @@ bool CRPM::CheckFingerprint(const std::string& pPackage)
std::string PGPSignatureText = pgpsig;
free(pgpsig);
- if (PGPSignatureText.find(" Key ID ") != std::string::npos)
+ size_t Key_ID_pos = PGPSignatureText.find(" Key ID ");
+ if (Key_ID_pos != std::string::npos)
{
- std::string headerFingerprint = PGPSignatureText.substr(PGPSignatureText.find(" Key ID ") + sizeof (" Key ID ") - 1);
+ std::string headerFingerprint = PGPSignatureText.substr(Key_ID_pos + sizeof (" Key ID ") - 1);
rpmtdFree(td);
if (headerFingerprint != "")