projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.0.1
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
connectivity
/
lib
/
libcoap-4.1.1
/
pdu.c
diff --git
a/resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.c
b/resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.c
index
175394b
..
e4f40d6
100644
(file)
--- a/
resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.c
+++ b/
resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.c
@@
-330,6
+330,9
@@
unsigned int coap_get_length_from_header(const unsigned char *header, coap_trans
unsigned int length_field_data = 0;
switch(transport)
{
+ case coap_tcp:
+ length = header[0] >> 4;
+ break;
case coap_tcp_8bit:
length = header[1] + COAP_TCP_LENGTH_FIELD_8_BIT;
break;