commit | 893deac4c43b57ae49f736ec050724b6de181062 | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Thu Aug 24 11:41:31 2017 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Thu Aug 24 15:22:10 2017 -0700 |
tree | 4596277c008954a94f3ac35f4b1d2275645314c9 | |
parent | ac3415f5c1b1df2d6a4bf770ad52e2e14c09e58e [diff] |
lib/libnetlink: Don't pass NULL parameter to memcpy() Both addattr_l() and rta_addattr_l() may be called with NULL data pointer and 0 alen parameters. Avoid calling memcpy() in that case. Signed-off-by: Phil Sutter <phil@nwl.cc>