Skip to content

Commit c38cbde

Browse files
authored
Merge pull request #475 from embhorn/fenrir_issues
Misc issues
2 parents 9cb4789 + 20b1560 commit c38cbde

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/mqtt_client.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,8 @@ static int MqttClient_CancelMessage(MqttClient *client, MqttObject* msg);
201201
return 0;
202202
}
203203

204-
static UINT semstatus;
205204
int wm_SemLock(wm_Sem *s) {
206-
semstatus = tx_semaphore_get(s, TX_WAIT_FOREVER);
205+
UINT semstatus = tx_semaphore_get(s, TX_WAIT_FOREVER);
207206
if (semstatus != TX_SUCCESS) {
208207
return MQTT_TRACE_ERROR(MQTT_CODE_ERROR_SYSTEM);
209208
}

src/mqtt_socket.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@ int MqttSocket_Connect(MqttClient *client, const char* host, word16 port,
466466
goto exit;
467467
}
468468
wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_NONE, 0);
469+
#ifdef WOLFMQTT_DEBUG_SOCKET
470+
PRINTF("Warning: TLS set to VERIFY_NONE. Use MqttClient_SetTlsCb "
471+
"to set peer verification in production");
472+
#endif
469473
}
470474

471475
#ifndef NO_DH

0 commit comments

Comments
 (0)