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 2017/03/07 00:05:25 UTC

[30/50] incubator-mynewt-core git commit: nimble/l2cap: Fix handling bad data in L2CAP update parameters response

nimble/l2cap: Fix handling bad data in L2CAP update parameters response

Returning error will cause sending L2CAP REJECT on that response and
this is incorrect. This patch fixes that.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/73705b08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/73705b08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/73705b08

Branch: refs/heads/1_0_0_dev
Commit: 73705b0855a8e53ed59ce3b6064a75a5b80f8f26
Parents: e9d7750
Author: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Authored: Thu Feb 2 11:32:25 2017 +0100
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 6 15:51:42 2017 -0800

----------------------------------------------------------------------
 net/nimble/host/src/ble_l2cap_sig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/73705b08/net/nimble/host/src/ble_l2cap_sig.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_l2cap_sig.c b/net/nimble/host/src/ble_l2cap_sig.c
index d6219d3..560311d 100644
--- a/net/nimble/host/src/ble_l2cap_sig.c
+++ b/net/nimble/host/src/ble_l2cap_sig.c
@@ -438,7 +438,7 @@ ble_l2cap_sig_update_rsp_rx(uint16_t conn_handle,
 
     default:
         cb_status = BLE_HS_EBADDATA;
-        rc = BLE_HS_EBADDATA;
+        rc = 0;
         break;
     }