diff options
author | Daniel Mack <github@zonque.org> | 2016-07-15 04:56:11 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-14 22:56:11 -0400 |
commit | a34349e73348d16d0f41910a38f515f78d18d396 (patch) | |
tree | 9816086dbef8e3f0ab58cf3d0fbafaba191bbd3f /man/shutdown.xml | |
parent | f749954d924dc126fd3b8a5539b537ddb1a07f71 (diff) |
network-ndisc: avoid VLAs (#3725)
Do not allocate objects of dynamic and potentially large size on the stack
to avoid both clang compilation errors and unpredictable runtime behavior
on exotic platforms. Use the heap for that instead.
While at it, refactor the code a bit. Access 's->domain' via
NDISC_DNSSL_DOMAIN(), and refrain from allocating 'x' independently, but
rather reuse 's' if we're dealing with a new entry to the set.
Fixes #3717
Diffstat (limited to 'man/shutdown.xml')
0 files changed, 0 insertions, 0 deletions