Bugfix for SSL without hostname.