Note that we're falling through.  Closes CID #1258579
Close sockfd if we fail.  Closes CID #1258578
We don't need an "update" config.  Closes CID #1258577
We need an "update" config.  Closes CID #1258577
Return on bad things.  Closes CID #1258571
Typo.  Closes CID #1258570
Typo
Remove dead code
Coverity CID #1258567
Coverity CID #1258569
Coverity CID #1258572
Decrease block protected by the mutex. Closes CID #1258573
Coverity CID #1258575