acpid/acpid-wrong-memset.patch

14 lines
409 B
Diff

Index: acpid-2.0.13/libnetlink.c
===================================================================
--- acpid-2.0.13.orig/libnetlink.c
+++ acpid-2.0.13/libnetlink.c
@@ -41,7 +41,7 @@ int rtnl_open_byproto(struct rtnl_handle
int sndbuf = 32768;
int rcvbuf = 32768;
- memset(rth, 0, sizeof(rth));
+ memset(rth, 0, sizeof(*rth));
rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol);
if (rth->fd < 0) {