Fix crash in client accept
Merge branch 'master' into peercoin