Closed domedambrosio closed 10 years ago
the string location_path sent to the registering client was deallocated before being sent. My solution was to change the assignment in coap_set_header_location_path() with strdup() (and free it later) but I'm not sure it's the best way...
Hi,
The first patch is fine. For the second one, could you add some checks ? strdup() may fail. and please check response->location_path before freeing it. BTW, use lwm2m_free instead of free.
As a general comment: please put only one patch per pull request.
Regards
Done. Sorry for the single pull request.
the resource ID for "reset error code" is 12 not 10. "!=" takes precedence over "&"