summaryrefslogtreecommitdiff
path: root/src/manager/client-async/client-manager-async-impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager/client-async/client-manager-async-impl.cpp')
-rw-r--r--src/manager/client-async/client-manager-async-impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manager/client-async/client-manager-async-impl.cpp b/src/manager/client-async/client-manager-async-impl.cpp
index 96454cbd..3837771e 100644
--- a/src/manager/client-async/client-manager-async-impl.cpp
+++ b/src/manager/client-async/client-manager-async-impl.cpp
@@ -42,7 +42,7 @@ void ManagerAsync::Impl::saveKey(const ObserverPtr &observer,
{
observerCheck(observer);
- if (alias.empty() || !key) {
+ if (alias.empty() || !key || key->empty()) {
observer->ReceivedError(CKM_API_ERROR_INPUT_PARAM);
return;
}
@@ -62,7 +62,7 @@ void ManagerAsync::Impl::saveCertificate(const ObserverPtr &observer,
{
observerCheck(observer);
- if (alias.empty() || !cert) {
+ if (alias.empty() || !cert || cert->empty()) {
observer->ReceivedError(CKM_API_ERROR_INPUT_PARAM);
return;
}