Commit 4364f15e authored by Todd Malsbary's avatar Todd Malsbary Committed by Nathan Heldt-Sheller

Don't delete in-use credInfo.

Bug: https://jira.iotivity.org/browse/IOT-2828
Change-Id: Iac85f39806857767bbc6f5dcab02057f791bb5bc
Signed-off-by: default avatarTodd Malsbary <todd.malsbary@intel.com>
parent 36c7f823
......@@ -516,7 +516,7 @@ static OCStackApplicationResult ProvisionCredentialDosCB1(void *ctx, OCDoHandle
res = ProvisionLocalCredential(ctx, credInfo);
}
if ((NULL != deviceInfo) || (OC_STACK_OK != res))
if (OC_STACK_OK != res)
{
DeleteCredList(credInfo);
}
......
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