Commit 84e5f48d authored by's avatar Committed by Uze Choi

[JIRA IOT-768] fixed to parsing message length for TCP

when message length of TCP has short size (0~12 size)
Parser of Receiver is working as wrong size

Change-Id: I0bfee2be03cb22a7bbb53c4d0f419381c8306fb5
Signed-off-by: default avatarjihwan.seo <>
Reviewed-on: default avatarAshok Babu Channa <>
Tested-by: default avatarjenkins-iotivity <>
Reviewed-by: default avatarPatrick Lankswert <>
Signed-off-by: default <>
Reviewed-on: default avatarUze Choi <>
Tested-by: default avatarUze Choi <>
parent b517d1e7
......@@ -330,6 +330,9 @@ unsigned int coap_get_length_from_header(const unsigned char *header, coap_trans
unsigned int length_field_data = 0;
case coap_tcp:
length = header[0] >> 4;
case coap_tcp_8bit:
length = header[1] + COAP_TCP_LENGTH_FIELD_8_BIT;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment