diff options
author | lloyd <[email protected]> | 2008-11-25 07:14:46 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-25 07:14:46 +0000 |
commit | 8846b510e3f8620dfba2c53daa62879667875cde (patch) | |
tree | 0f0de3d89c57fb25a906f08207eb1fa71e1f5662 /src/entropy | |
parent | a8696ac0c6a8a20b1dae79fb0670ea9885767935 (diff) |
If the read succeceed in EGD_EntropySource::slow_poll, the loop would
just continue on instead of returning the length of the buffer recv'ed
from EGD.
Diffstat (limited to 'src/entropy')
-rw-r--r-- | src/entropy/egd/es_egd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/entropy/egd/es_egd.cpp b/src/entropy/egd/es_egd.cpp index f493de33b..736d49a6f 100644 --- a/src/entropy/egd/es_egd.cpp +++ b/src/entropy/egd/es_egd.cpp @@ -104,6 +104,8 @@ u32bit EGD_EntropySource::slow_poll(byte output[], u32bit length) if(count < 0) return 0; + + return static_cast<u32bit>(count); } return 0; |