projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify DSA public key handling.
[oweals/openssl.git]
/
crypto
/
rand
/
rand_os2.c
diff --git
a/crypto/rand/rand_os2.c
b/crypto/rand/rand_os2.c
index 9c4a137bb7bed3229cb84156b632b05757c563fc..02148d5bf9412c20534d6d9caff52049086d9eae 100644
(file)
--- a/
crypto/rand/rand_os2.c
+++ b/
crypto/rand/rand_os2.c
@@
-149,6
+149,9
@@
int RAND_poll(void)
if (DosQuerySysState) {
char *buffer = OPENSSL_malloc(256 * 1024);
+ if(!buffer)
+ return 0;
+
if (DosQuerySysState(0x1F, 0, 0, 0, buffer, 256 * 1024) == 0) {
/*
* First 4 bytes in buffer is a pointer to the thread count there