You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/01/02 14:00:14 UTC

[GitHub] [mynewt-nimble] Francois-Belanger commented on a change in pull request #684: Update ble_l2cap.c

Francois-Belanger commented on a change in pull request #684: Update ble_l2cap.c
URL: https://github.com/apache/mynewt-nimble/pull/684#discussion_r362481520
 
 

 ##########
 File path: nimble/host/src/ble_l2cap.c
 ##########
 @@ -403,7 +403,9 @@ ble_l2cap_tx(struct ble_hs_conn *conn, struct ble_l2cap_chan *chan,
 
     case BLE_HS_EAGAIN:
         /* Controller could not accommodate full packet.  Enqueue remainder. */
-        STAILQ_INSERT_TAIL(&conn->bhc_tx_q, OS_MBUF_PKTHDR(txom), omp_next);
+        if (txom) {
+            STAILQ_INSERT_TAIL(&conn->bhc_tx_q, OS_MBUF_PKTHDR(txom), omp_next);
+        }
 
 Review comment:
   Hi, will try to test within days.  Was on another project.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services