Fix segfault on non-TLS client connecting to TLS listener.
Fix segfault on non-TLS client connecting to TLS listener.

Closes bug #1248598. Thanks to Marco Molteni.

zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto