Fix compile warning
ensure initialized variable
Removed unused variable
Fix for coverity issue #982114
orrectly remove trailing \n in smbencrypt

Closes Coverity #982111
Ensure conn is initialized

Closes Coverity #982110
Don't use uninitialized variables

Fixes Coverity #982109
Ensure da is initialized and checked

Closes Coverity #982108
Don't use strcpy

Closes Coverity #982105
Check bufsize

Closes Coverity #982104