Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > c0394d3068b44395994f031447c8052d > files > 10

net-snmp-5.3.2.2-7.el5_4.2.src.rpm

Written-By: Jan Safranek <jsafrane@redhat.com>
Reviewed-By: Radek Vokal <rvokal@redhat.com>

Index: agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c
===================================================================
--- agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c	(revision 16735)
+++ agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c	(working copy)
@@ -215,6 +215,11 @@
             continue;
         }
 
+        /* restore the interface name, if we modifed it due un-aliasing above */
+        if (entry->flags | NETSNMP_ACCESS_IPADDRESS_ISALIAS) {
+            memcpy(ifrp->ifr_name, extras->name, sizeof(extras->name));
+        }
+
         /*
          * get broadcast
          */