mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[nodiscard] Fix all winpr_RAND usages
* Check return value and act on it. * Initialize arrays that were missed before.
This commit is contained in:
@@ -343,7 +343,8 @@ proxyData* proxy_data_new(void)
|
||||
if (!(pdata->gfx_server_ready = CreateEvent(nullptr, TRUE, FALSE, nullptr)))
|
||||
goto error;
|
||||
|
||||
winpr_RAND(&temp, 16);
|
||||
if (winpr_RAND(&temp, 16) < 0)
|
||||
goto error;
|
||||
hex = winpr_BinToHexString(temp, 16, FALSE);
|
||||
if (!hex)
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user