Fix undefined behavior issue
send back an error if there's an encryption failure
Minor cleanup
Merge branch 'master' of https://github.com/cjdelisle/cjdns into reach_test