crypt32: Change salt allocation to handle errors (Coverity 133).
This commit is contained in:
parent
256d3a2ee1
commit
9990bde993
|
@ -616,11 +616,9 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
pInfo->salt.cbData=CRYPT32_PROTECTDATA_SALT_LEN;
|
pInfo->salt.cbData=CRYPT32_PROTECTDATA_SALT_LEN;
|
||||||
}
|
|
||||||
|
|
||||||
/* debug: show our salt */
|
/* debug: show our salt */
|
||||||
TRACE_DATA_BLOB(&pInfo->salt);
|
TRACE_DATA_BLOB(&pInfo->salt);
|
||||||
|
}
|
||||||
pInfo->cipher.cbData=0;
|
pInfo->cipher.cbData=0;
|
||||||
pInfo->cipher.pbData=NULL;
|
pInfo->cipher.pbData=NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue