Signed-off-by: xwh <jiewenhao@huawei.com>
This commit is contained in:
xwh 2022-09-21 08:54:04 +00:00 committed by Gitee
parent b6c3cfa44a
commit 17773f3701
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -436,7 +436,7 @@ int32_t GenerateStrHashAndConvertToHexString(const unsigned char *str, uint32_t
unsigned char hashResult[SHA_256_HASH_LEN] = {0};
if (hashStrLen < HEXIFY_LEN(len / HEXIFY_UNIT_LEN)) {
SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "generate str hash invalid hashStrLen");
return SOFTBUS_INVALID_PARAM;
return SOFTBUS_INVALID_PARAM;
}
if (str == NULL) {
SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "generate str hash invalid param");