Skip to content

Commit

Permalink
Merge pull request #193 from guruchandru/mqtt_check
Browse files Browse the repository at this point in the history
Fix for avoiding crash when http response code is not present in mqtt config
  • Loading branch information
sadhyama authored Oct 25, 2023
2 parents 9ea7349 + 6ab123b commit cf152d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webcfg_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,8 @@ int processPayload(char * data, int dataSize)
ptr_count++;
}

ptr_count = data_body;
ptr1_count = data_body;
while((ptr_count - data_body) < dataSize )
{
ptr_count = memchr(ptr_count, 'C', dataSize - (ptr_count - data_body));
Expand Down

0 comments on commit cf152d1

Please sign in to comment.