Commit 331ad178 authored by Aleksey's avatar Aleksey Committed by Nathan Heldt-Sheller

[IOT-3216] Fix /SP resource section write to PS

Fixed `copy-paste` typo due to which SP resource write was skipped ..

Change-Id: I1756a41f93a82b57a02d1c0641995fcf36fe5fa3
Signed-off-by: Aleksey's avatarAleksey Volkov <a.volkov@samsung.com>
parent 9d76be5b
......@@ -441,7 +441,7 @@ OCStackResult UpdateResourceInPS(const char *databaseName, const char *resourceN
cborEncoderResult |= cbor_encode_byte_string(&resource, crlCbor, crlCborLen);
VERIFY_CBOR_SUCCESS_OR_OUT_OF_MEMORY(TAG, cborEncoderResult, "Failed Adding Crl Value.");
}
if (strcmp(OIC_JSON_SP_NAME, resourceName) && crlCborLen)
if (strcmp(OIC_JSON_SP_NAME, resourceName) && spCborLen)
{
cborEncoderResult |= cbor_encode_text_string(&resource, OIC_JSON_SP_NAME, strlen(OIC_JSON_SP_NAME));
VERIFY_CBOR_SUCCESS_OR_OUT_OF_MEMORY(TAG, cborEncoderResult, "Failed Adding SP Name.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment