Index: files/patch-agent_mibgroup_if-mib_data__access_interface__sysctl.c =================================================================== --- files/patch-agent_mibgroup_if-mib_data__access_interface__sysctl.c (nonexistent) +++ files/patch-agent_mibgroup_if-mib_data__access_interface__sysctl.c (working copy) @@ -0,0 +1,28 @@ +--- agent/mibgroup/if-mib/data_access/interface_sysctl.c.orig 2018-07-16 14:33:40 UTC ++++ agent/mibgroup/if-mib/data_access/interface_sysctl.c +@@ -531,7 +531,8 @@ netsnmp_arch_interface_container_load(netsnmp_containe + } + } + adl = (struct sockaddr_dl *) a; +- if_name = (char *) adl->sdl_data; ++ if_name = malloc(adl->sdl_nlen + 1); ++ memcpy(if_name, adl->sdl_data, adl->sdl_nlen); + if_name[adl->sdl_nlen] = '\0'; + } + if (!(ifp->ifm_addrs & RTA_IFP) || if_name == NULL) { +@@ -545,6 +546,7 @@ netsnmp_arch_interface_container_load(netsnmp_containe + netsnmp_access_interface_container_free(container, + NETSNMP_ACCESS_INTERFACE_FREE_NOFLAGS); + free(if_list); ++ free(if_name); + return -3; + } + +@@ -563,6 +565,7 @@ netsnmp_arch_interface_container_load(netsnmp_containe + entry->paddr_len = 6; + memset(entry->paddr, 0, 6); + } ++ free(if_name); + + entry->mtu = ifp->ifm_data.ifi_mtu; + entry->type = ifp->ifm_data.ifi_type; Property changes on: files/patch-agent_mibgroup_if-mib_data__access_interface__sysctl.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property