aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/compat/getentropy_win.c
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-12-04 23:10:49 +0200
committerRiccardo Spagni <ric@spagni.net>2014-12-04 23:10:49 +0200
commit831933425b3406310e70476dc56e822f7ae3c549 (patch)
treebd05c1b54f8cff8ef0bc1f769a22232172ec2a96 /external/unbound/compat/getentropy_win.c
parentincreased version number for tagged release (diff)
downloadmonero-831933425b3406310e70476dc56e822f7ae3c549.tar.xz
update unbound from upstream
Diffstat (limited to '')
-rw-r--r--external/unbound/compat/getentropy_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/unbound/compat/getentropy_win.c b/external/unbound/compat/getentropy_win.c
index 9dc55891e..71fb955e7 100644
--- a/external/unbound/compat/getentropy_win.c
+++ b/external/unbound/compat/getentropy_win.c
@@ -41,9 +41,9 @@ getentropy(void *buf, size_t len)
}
if (CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL,
- CRYPT_VERIFYCONTEXT) != 0)
+ CRYPT_VERIFYCONTEXT) == 0)
goto fail;
- if (CryptGenRandom(provider, len, buf) != 0) {
+ if (CryptGenRandom(provider, len, buf) == 0) {
CryptReleaseContext(provider, 0);
goto fail;
}