|
|
|
@ -180,7 +180,7 @@ int bridge__connect(struct mosquitto_db *db, struct mosquitto *context)
|
|
|
|
|
rc = net__socket_connect(context, context->bridge->addresses[context->bridge->cur_address].address, context->bridge->addresses[context->bridge->cur_address].port, NULL, false);
|
|
|
|
|
if(rc > 0 ){
|
|
|
|
|
if(rc == MOSQ_ERR_TLS){
|
|
|
|
|
_mosquitto_socket_close(db, context);
|
|
|
|
|
net__socket_close(db, context);
|
|
|
|
|
return rc; /* Error already printed */
|
|
|
|
|
}else if(rc == MOSQ_ERR_ERRNO){
|
|
|
|
|
log__printf(NULL, MOSQ_LOG_ERR, "Error creating bridge: %s.", strerror(errno));
|
|
|
|
|