mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-16 14:35:34 +08:00
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:
parent
23459a40a8
commit
fb2297599d
@ -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
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user