address minor conditions identified by Coverity

including fixing one (unlikely) potential crashing bug in an error
condition (system memory exhaustion) during bsock reconfiguration.
Thanks: https://scan.coverity.com/