Encrypted attrs can only be for old-style attrs.

Closes CID #1035573
Don't talloc_free a variable that hasn't been alloced

Closes CID #1194501
Remove dead code.

Fixes CID #1187990
Fix typos