]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
When assigning an ip address to an ethernet adapter, the newest
authorshemminger <shemminger>
Tue, 4 Oct 2005 23:15:32 +0000 (23:15 +0000)
committershemminger <shemminger>
Tue, 4 Oct 2005 23:15:32 +0000 (23:15 +0000)
(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.

ChangeLog
lib/libnetlink.c

index dd1973db9653de3625029450b9dbbc29f764b02d..013b473cd364ccdfa482a6192d0e29f9c56df404 100644 (file)
--- 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
index 82f811bbbbb7f970f2d0120ccc2543b118ad8266..24e1f0b6f8d226da6202105eedafe0531e46d3ce 100644 (file)
@@ -235,7 +235,10 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
        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),