mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 09:10:04 +00:00
Coap fixes (#1606)
* Fixes segmentation fault in POSIX version by removing coap message initialisation with NULL header * Alters API so that there will be no attempt to create messages with NULL header
This commit is contained in:
committed by
Jonathan Hui
parent
f4c40f4c8a
commit
681fff9f94
@@ -260,7 +260,7 @@ exit:
|
||||
ThreadError Coap::ProcessClient(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
otMessage *message = otCoapNewMessage(sInstance, NULL);
|
||||
otMessage *message = NULL;
|
||||
otMessageInfo messageInfo;
|
||||
otCoapHeader header;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user