Fix a possible double free when tls is required but not advertised by
the server.
plug the message content through the filter fd chain.
Merge branch 'master' into portable
stop casting sizeof to int
cvsid + fix two memory leaks
do not int cast a sizeof
Merge branch 'master' into portable