mesh: Use static array to hold config server response
authorInga Stotland <inga.stotland@intel.com>
Mon, 13 Jul 2020 23:05:26 +0000 (16:05 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit2104b4264db6973416d694422172bf6447fe571f
treedfe2c22aa17092b0ac2eb0722c37ae2e56373281
parentfc36a20d866e9b14fcf2ea6b837f4468d1e50031
mesh: Use static array to hold config server response

This eliminates dynamic allocation for long responses and local
arrays for short responses. Instead, aclear text response from
config server is written into a static buffer and then encoded
into dynamically allocated messafe buffer to use in actual
transmission.

Change-Id: Ia4de6dc44cf1c3781521eeacf2b1e793ac30007c
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/cfgmod-server.c