This commit is contained in:
Olaf Bergmann committed 2012-01-20 18:04:08 +01:00
1 parent 29ce30fa32
commit a335f87847
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -870,7 +870,7 @@ handle_request(coap_context_t *context, coap_queue_t *node) {
opt_filter);
}
if (coap_send(context, &node->remote, response) == COAP_INVALID_TID) {
if (response && coap_send(context, &node->remote, response) == COAP_INVALID_TID) {
warn("cannot send response for transaction %u\n", node->id);
coap_delete_pdu(response);
}
+1 -1
View File
@@ -27,7 +27,7 @@
#ifdef WITH_CONTIKI
#include "memb.h"
typedef unsigned char _pdu[COAP_MAX_PDU_SIZE];
typedef unsigned char _pdu[sizeof(coap_pdu_t) + COAP_MAX_PDU_SIZE];
MEMB(pdu_storage, _pdu, COAP_PDU_MAXCNT);