/*
- * Copyright (c) 2000 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
if (alias_info_list == nullptr)
return CKMC_ERROR_UNKNOWN;
- if (aliasPwdVector.size() == 0)
+ if (aliasPwdVector.size() == 0) {
+ *alias_info_list = nullptr; // according to documentation from header
return CKMC_ERROR_DB_ALIAS_UNKNOWN;
+ }
ckmc_alias_info_list_s *start = nullptr;
ckmc_alias_info_list_s *plist = nullptr;
start = plist;
}
+ *alias_list = start; // according to documentation in header
+
if (plist == nullptr) // if the alias_list size is zero
return CKMC_ERROR_DB_ALIAS_UNKNOWN;
- *alias_list = start;
-
return CKMC_ERROR_NONE;
EXCEPTION_GUARD_END
start = plist;
}
+ *alias_list = start; // according to documentation from header
+
if (plist == nullptr) // if the alias_list size is zero
return CKMC_ERROR_DB_ALIAS_UNKNOWN;
- *alias_list = start;
-
return CKMC_ERROR_NONE;
EXCEPTION_GUARD_END
start = plist;
}
+ *alias_list = start; // according to documentation in header
+
if (plist == nullptr) // if the alias_list size is zero
return CKMC_ERROR_DB_ALIAS_UNKNOWN;
- *alias_list = start;
-
return CKMC_ERROR_NONE;
EXCEPTION_GUARD_END