The function findBeforeAndAfterUnhashed() is weakly defined, and I'm not sure what it is supposed to do. I'm pretty sure it doesn't do it though. In addition, in many other places it looks like it might dereference an end() iterator or simply march past the end or beginning even.
this fix prevents a crash in bind backend in dnssec mode but unsure i…
…f it does the right thing