[riot-notifications] [RIOT-OS/RIOT] Add MUD URL option to DHCPv6 client (#15508)

Jan Romann notifications at github.com
Sun Nov 29 01:42:30 CET 2020

@JKRhb commented on this pull request.

> @@ -254,7 +254,7 @@ static inline size_t _compose_mud_url_opt(dhcpv6_opt_mud_url_t *mud_url_opt,
     mud_url_opt->type = byteorder_htons(DHCPV6_OPT_MUD_URL);
     mud_url_opt->len = byteorder_htons(len);
-    strncpy(mud_url_opt->mudString, mud_url);
+    strncpy(mud_url_opt->mudString, mud_url, len);

Oh, sorry, you are right! (I have to admit that I am that used to work with buffers.) Could you give me a hint how to check if there is enough space left in the buffer? Would we just call the `abort()` function if this check fails? (Sorry again if I am asking obvious questions.)

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/20201128/1f3eca0a/attachment.htm>

More information about the notifications mailing list