[#2222] refactored for readability
[#2212] CID37639:

checked a previously unchecked status variable
[#2212] CID37616:

checked and logged previously unused captured status
[#2212] CID37605:

added error checking in db_unreg_replica_op
[#2212] CID26306:

Added error checking on the return from parseUserName
[#2212] CID26303 and CID26041:

use the correct types in sizeof