diff options
author | Jiri Popelka <jpopelka@redhat.com> | 2011-12-07 19:14:09 +0100 |
---|---|---|
committer | Jiri Popelka <jpopelka@redhat.com> | 2012-01-05 12:22:43 +0100 |
commit | 81814dc2b14843009193efd307d814c26baa61f0 (patch) | |
tree | 3a3fc6a6371b6fa5c938cbffce3b4116eff34691 | |
parent | 796ba7f1e59883a85558996ea7785054ae45aac0 (diff) | |
download | net-tools-81814dc2b14843009193efd307d814c26baa61f0.tar.gz net-tools-81814dc2b14843009193efd307d814c26baa61f0.tar.bz2 net-tools-81814dc2b14843009193efd307d814c26baa61f0.zip |
ifconfig interface:0 del <IP> will remove the aliased IP on IA64
-rw-r--r-- | ifconfig.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -890,7 +890,9 @@ int main(int argc, char **argv) continue; } - memcpy(&ip, &sin.sin_addr.s_addr, sizeof(unsigned long)); + /* Clear "ip" in case sizeof(unsigned long) > sizeof(sin.sin_addr.s_addr) */ + ip = 0; + memcpy(&ip, &sin.sin_addr.s_addr, sizeof(sin.sin_addr.s_addr)); if (get_nmbc_parent(ifr.ifr_name, &nm, &bc) < 0) { fprintf(stderr, _("Interface %s not initialized\n"), |