Skip to content

Commit

Permalink
Fix for avoiding crash when http response code is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
guruchandru committed Oct 18, 2023
1 parent 9ea7349 commit 6ab123b
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 6ab123b

Please sign in to comment.