[#2112] CID26294 and CID26038:

Passed sizeof appropriate arguments
[#2212] CID26284 and CID25910:

Passed sizeof appropriate arguments
[#2212] CID26275 and CID25872:

checked return values from sslAccept and sslShutdown for errors
[#2212] CID26231 and CID25963:

checked return values for errors
[#2212] CID25945 and CID26222:

passed sizeof appropriate arguments