Skip to content

Commit

Permalink
Fix a bug that Puback Packet was not set (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera authored May 31, 2023
1 parent 73a182d commit ce22185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/mqtt5_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ static void s_on_publish_complete_fn(
size_t user_property_count = 0;

if (packet_type == AWS_MQTT5_PT_PUBACK) {
if (puback != NULL) {
if (packet != NULL) {
puback = packet;
reason_code = puback->reason_code;
reason_string = puback->reason_string;
Expand Down

0 comments on commit ce22185

Please sign in to comment.