mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 15:57:05 -05:00
If a request ends up growing beyong the initially allocated space the
netlink functions (such as snl_add_msg_attr_u32()) will allocate a
new buffer. This invalidates the header pointer we can have received
from snl_create_msg_request(). Always use the hdr returned by
snl_finalize_msg().
Reviewed by: melifaro
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D42223
(cherry picked from commit 4f8f43b06ed07e96a250855488cc531799d5b78f)
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| test_netlink_message_writer.py | ||
| test_nl_core.py | ||
| test_rtnl_iface.py | ||
| test_rtnl_ifaddr.py | ||
| test_rtnl_neigh.py | ||
| test_rtnl_route.py | ||
| test_snl.c | ||
| test_snl_generic.c | ||