Fix Netlink message length.

BUG=163902


Review URL: https://chromiumcodereview.appspot.com/11428141

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170812 0039d316-1c4b-4281-b951-d872f2087c98
parent 2f6cce4d
......@@ -116,7 +116,7 @@ void AddressTrackerLinux::Init() {
struct rtgenmsg msg;
} request = {};
request.header.nlmsg_len = NLMSG_LENGTH(sizeof(request));
request.header.nlmsg_len = NLMSG_LENGTH(sizeof(request.msg));
request.header.nlmsg_type = RTM_GETADDR;
request.header.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP;
request.header.nlmsg_pid = getpid();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment