[riot-notifications] [RIOT-OS/RIOT] uhcp: fix handling of pushed prefix (#15359)

Martine Lenders notifications at github.com
Mon Nov 2 16:04:34 CET 2020


@miri64 commented on this pull request.



> @@ -97,14 +97,17 @@ void uhcp_handle_push(uhcp_push_t *req, uint8_t *src, uint16_t port, uhcp_iface_
     char addr_str[INET6_ADDRSTRLEN];
     char prefix_str[INET6_ADDRSTRLEN];
     inet_ntop(AF_INET6, src, addr_str, INET6_ADDRSTRLEN);
-    uint8_t prefix[16];
+    uint8_t prefix[IN6ADDRSZ] = { 0 };
+    if (req->prefix_len == 0) {

Done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15359#discussion_r516033527
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201102/3dbd4119/attachment.htm>


More information about the notifications mailing list