From 6ab123bd5ca7b59a87ec3f1d417a8d1d490a5bfd Mon Sep 17 00:00:00 2001 From: guruchandru Date: Wed, 18 Oct 2023 16:24:08 +0530 Subject: [PATCH] Fix for avoiding crash when http response code is not present --- src/webcfg_mqtt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webcfg_mqtt.c b/src/webcfg_mqtt.c index a7861f63..3c627a37 100755 --- a/src/webcfg_mqtt.c +++ b/src/webcfg_mqtt.c @@ -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));