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/ChangeLog b/ChangeLog
index dd1973d..013b473 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2005-09-21  Stephen Hemminger  <shemminger@localhost.localdomain>
+2005-10-04  Jerome Borsboom <j.borsboom@erasmusmc.nl>
+
+	* Fix regression in ip addr (libnetlink) handling
+
+2005-09-21  Stephen Hemminger  <shemminger@osdl.org>
 
 	* Fix uninitialized memory and leaks with valgrind
 	  Reported by Redhat
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),