Check size of buffer for raw attributes
add missing break
value may be NULL

If the admin misconfigures things, oh well
Don't expand variables if cs==NULL

Closes Coverity #720373
Clear memory using correct size

Closes Coverity #720439, 40, 41
Check fro =~ and !~
Fix race condition in conf file

Closes Coverity #720457