Coverity fixes from issue 249
Allow asoc==65535