Avoid code repetition introduced with PR #2367, also fixes the return value to always return 0 if there is nothing more to rehash.
Attach a file by drag & drop or click to upload