fixes serveral vulnerabilities; http://www.vuxml.org/openbsd/a7ce7b3c-136a-11da-bb92-00065bd5b0b6.html ok pvalchev@