[riot-notifications] [RIOT-OS/RIOT] asymcute: check for minimum packet length early (#10721)

Sebastian Meiling notifications at github.com
Mon Jan 7 16:28:53 CET 2019

smlng commented on this pull request.

> @@ -517,15 +517,20 @@ static void _on_unsuback(asymcute_con_t *con, const uint8_t *data, size_t len)
 static void _on_data(asymcute_con_t *con, size_t pkt_len, sock_udp_ep_t *remote)
     size_t len;
-    size_t pos = _len_get(con->rxbuf, &len);
+    size_t pos;

question also is if an `assert` could also suffice the cause here?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190107/fba1c361/attachment.html>

More information about the notifications mailing list