Sophie

Sophie

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

net-snmp-5.3.2.2-14.el5.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
          */