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.
This commit is contained in:
shemminger 2005-10-04 23:15:32 +00:00
parent 23459a40a8
commit fb2297599d
2 changed files with 9 additions and 2 deletions

View File

@ -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

View 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),