When assigning an ip address to an ethernet adapter, the newest
(050929) version of 'ip addr' hangs while older versions worked.
The problem was traced to be a removed initialisation. The patch
below corrects this problem.
diff --git a/lib/libnetlink.c b/lib/libnetlink.c
index 82f811b..24e1f0b 100644
--- a/lib/libnetlink.c
+++ b/lib/libnetlink.c
@@ -235,7 +235,10 @@
unsigned seq;
struct nlmsghdr *h;
struct sockaddr_nl nladdr;
- struct iovec iov;
+ struct iovec iov = {
+ .iov_base = (void*) n,
+ .iov_len = n->nlmsg_len
+ };
struct msghdr msg = {
.msg_name = &nladdr,
.msg_namelen = sizeof(nladdr),