Skip to content

Commit 49d5265

Browse files
authored
Merge pull request #439 from kaabia/fix/auth-state-check
Fix: Correct state transition check in MqttClient_Auth
2 parents 9a9d9dd + 2e87475 commit 49d5265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mqtt_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ int MqttClient_Auth(MqttClient *client, MqttAuth* auth)
26922692

26932693
auth->stat.write = MQTT_MSG_HEADER;
26942694
}
2695-
if (auth->stat.write == MQTT_MSG_BEGIN) {
2695+
if (auth->stat.write == MQTT_MSG_HEADER) {
26962696
int xfer = client->write.len;
26972697

26982698
/* Send authentication packet */

0 commit comments

Comments
 (0)