From 37ac7cb2de2781edeb00329881d012ba5761bb1a Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Wed, 4 Jan 2012 15:42:15 +0100 Subject: [PATCH] Update the cookie from the reply message. --- src/kits/app/KeyStore.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kits/app/KeyStore.cpp b/src/kits/app/KeyStore.cpp index 70091cb341..55bc8def55 100644 --- a/src/kits/app/KeyStore.cpp +++ b/src/kits/app/KeyStore.cpp @@ -182,6 +182,7 @@ BKeyStore::GetNextKey(const char* keyring, BKeyType type, BKeyPurpose purpose, if (reply.FindMessage("key", &keyMessage) != B_OK) return B_ERROR; + reply.FindUInt32("cookie", &cookie); return key._Unflatten(keyMessage); } @@ -227,6 +228,7 @@ BKeyStore::GetNextKeyring(uint32& cookie, BString& keyring) if (reply.FindString("keyring", &keyring) != B_OK) return B_ERROR; + reply.FindUInt32("cookie", &cookie); return B_OK; } @@ -288,6 +290,7 @@ BKeyStore::GetNextMasterKeyring(uint32& cookie, BString& keyring) if (reply.FindString("keyring", &keyring) != B_OK) return B_ERROR; + reply.FindUInt32("cookie", &cookie); return B_OK; } @@ -345,6 +348,7 @@ BKeyStore::GetNextApplication(const BKey& key, uint32& cookie, if (reply.FindString("signature", &signature) != B_OK) return B_ERROR; + reply.FindUInt32("cookie", &cookie); return B_OK; }