]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib/libnetlink: Don't pass NULL parameter to memcpy()
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 09:41:31 +0000 (11:41 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:22:10 +0000 (15:22 -0700)
commit893deac4c43b57ae49f736ec050724b6de181062
tree4596277c008954a94f3ac35f4b1d2275645314c9
parentac3415f5c1b1df2d6a4bf770ad52e2e14c09e58e
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>
lib/libnetlink.c