mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-16 07:28:57 +00:00
Minor bug fix found by Niclas.
This commit is contained in:
parent
8c9f78374a
commit
f363140186
@ -80,8 +80,8 @@ handle_incoming_data()
|
||||
if (init_buffer(COAP_DATA_BUFF_SIZE)) {
|
||||
if (uip_newdata()) {
|
||||
coap_packet_t* response = (coap_packet_t*)allocate_buffer(sizeof(coap_packet_t));
|
||||
parse_message(response, uip_appdata, uip_datalen());
|
||||
if (response) {
|
||||
parse_message(response, uip_appdata, uip_datalen());
|
||||
response_handler(response);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user