eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6c2b10b1189eb558c861502379104e7b24309a6b
parent 37e6f6f08be3aa1b903fa33443970cce7ec4dbba
Author: Will Dietz <w@wdtz.org>
Date:   Mon, 28 Oct 2019 14:42:01 -0500

monitor: Don't pass NULL as src to memcpy

Skip the memcpy when len = 0

Diffstat:
Mmonitor/main.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/monitor/main.c b/monitor/main.c @@ -176,7 +176,8 @@ static size_t rta_add(void *rta_buf, unsigned short type, uint16_t len, rta->rta_len = rta_len; rta->rta_type = type; - memcpy(RTA_DATA(rta), data, len); + if (len) + memcpy(RTA_DATA(rta), data, len); return RTA_SPACE(len); }