summaryrefslogtreecommitdiff
path: root/lib/gnutls_global.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-10-31 21:42:21 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-10-31 22:25:16 +0100
commit16a54406eb11ac08d65f71b9c99c146de43b52de (patch)
treee927ff36686dc6478ab5245a75e54b90fabab5cb /lib/gnutls_global.c
parentf2aa1fa4bd35b22c3779a784b7c9f1d34054a9b5 (diff)
downloadgnutls-16a54406eb11ac08d65f71b9c99c146de43b52de.tar.gz
corrected check for urandom fd
Diffstat (limited to 'lib/gnutls_global.c')
-rw-r--r--lib/gnutls_global.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
index be7d1ed302..8d44ef35b1 100644
--- a/lib/gnutls_global.c
+++ b/lib/gnutls_global.c
@@ -208,7 +208,7 @@ int gnutls_global_init(void)
_gnutls_init++;
if (_gnutls_init > 1) {
- if (_gnutls_init == 1 && _gnutls_init_ret == 0) {
+ if (_gnutls_init == 2 && _gnutls_init_ret == 0) {
/* some applications may close the urandom fd
* before calling gnutls_global_init(). in that
* case reopen it */