Created attachment 158536 [details] Probable fix Reported by Brainy: http://m00nbsd.net/59a47a86959c23b3f7c8bc495598dfde.html And also by Coverity as CID 1251402
The relevant code was refactored, also removing the bug.