You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2018/01/16 16:01:55 UTC

[mynewt-core] branch ble_oic_fix created (now 9b34255)

This is an automated email from the ASF dual-hosted git repository.

marko pushed a change to branch ble_oic_fix
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


      at 9b34255  net/oic BLE; was not able to receive small requests.

This branch includes the following new commits:

     new 9b34255  net/oic BLE; was not able to receive small requests.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <co...@mynewt.apache.org>'].

[mynewt-core] 01/01: net/oic BLE; was not able to receive small requests.

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

marko pushed a commit to branch ble_oic_fix
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 9b34255893cfbfb2b7fd688dcbad274baab9ab9e
Author: Marko Kiiskila <ma...@runtime.io>
AuthorDate: Tue Jan 16 18:01:13 2018 +0200

    net/oic BLE; was not able to receive small requests.
---
 net/oic/src/port/mynewt/ble_adaptor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/oic/src/port/mynewt/ble_adaptor.c b/net/oic/src/port/mynewt/ble_adaptor.c
index 3feffbe..7de839a 100644
--- a/net/oic/src/port/mynewt/ble_adaptor.c
+++ b/net/oic/src/port/mynewt/ble_adaptor.c
@@ -229,8 +229,8 @@ oc_ble_reass(struct os_mbuf *om1, uint16_t conn_handle, uint8_t srv_idx)
         oe_ble->conn_handle = conn_handle;
         pkt2 = OS_MBUF_PKTHDR(om2);
 
-        if (os_mbuf_copydata(om2, 0, sizeof(hdr), hdr) ||
-          coap_tcp_msg_size(hdr, sizeof(hdr)) > pkt2->omp_len) {
+        os_mbuf_copydata(om2, 0, sizeof(hdr), hdr);
+        if (coap_tcp_msg_size(hdr, sizeof(hdr)) > pkt2->omp_len) {
             STAILQ_INSERT_TAIL(&oc_ble_reass_q, pkt2, omp_next);
         } else {
             STATS_INC(oc_ble_stats, iframe);

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.