Github user phunt commented on the issue:
https://github.com/apache/zookeeper/pull/524
FYI this doesn't apply cleanly to branch-3.4, you'll have to submit a
separate PR if you want to fix that branch as well. (it does apply cleanly to
branch 3.5 though)---
