Re: [iproute PATCH v3 6/6] lib/libnetlink: Don't pass NULL parameter to memcpy()

2017-08-24 Thread Stephen Hemminger
On Thu, 24 Aug 2017 11:41:31 +0200 Phil Sutter wrote: > 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 > --- > lib/libnetlink.c | 6 -- > 1 file changed, 4 insertions(+),

[iproute PATCH v3 6/6] lib/libnetlink: Don't pass NULL parameter to memcpy()

2017-08-24 Thread Phil Sutter
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 --- lib/libnetlink.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libnetlink.c b/lib/libnetlink.c inde