Skip to content

Commit

Permalink
Initialise pid_lfsr to zero
Browse files Browse the repository at this point in the history
Ensure that client->pid_lfsr is initialised in mqtt_init_reconnect()
  • Loading branch information
MartinKlang committed Jun 20, 2022
1 parent 0f4c34c commit 62cc0e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ void mqtt_init_reconnect(struct mqtt_client *client,
client->number_of_keep_alives = 0;
client->typical_response_time = -1.0f;
client->publish_response_callback = publish_response_callback;
client->pid_lfsr = 0;
client->send_offset = 0;

client->inspector_callback = NULL;
Expand Down

0 comments on commit 62cc0e3

Please sign in to comment.