Commit 0cf2e6fa authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Stop reading a serialized store if a non-context prop ID appears before a context prop ID.

parent bc3fa107
......@@ -499,8 +499,18 @@ static BOOL CRYPT_ReadSerializedStore(void *handle,
CERT_STORE_ADD_NEW, &context);
}
else
ret = CRYPT_ReadContextProp(contextInterface,
context, &propHdr, buf, read);
{
if (!contextInterface)
{
WARN("prop id %d before a context id\n",
propHdr.propID);
ret = FALSE;
}
else
ret = CRYPT_ReadContextProp(
contextInterface, context, &propHdr, buf,
read);
}
}
}
else
......
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