Page MenuHomeFreeBSD

D57604.1795413592.diff
No OneTemporary

Authored By
Unknown
Size
709 B
Referenced Files
None
Subscribers
None

D57604.1795413592.diff

diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
@@ -205,6 +205,7 @@
free(entry);
return (NULL);
}
+ entry->remoteMountPoint = NULL;
entry->index = map->hrIndex;
map->entry = entry;
@@ -352,6 +353,9 @@
(entry = fs_entry_create(fs_p->f_mntonname)) != NULL) {
entry->flags |= HR_FS_FOUND;
+ free(entry->remoteMountPoint);
+ entry->remoteMountPoint = NULL;
+
if (!(fs_p->f_flags & MNT_LOCAL)) {
/* this is a remote mount */
entry->remoteMountPoint = strdup(fs_p->f_mntfromname);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 5:59 AM (11 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41888559
Default Alt Text
D57604.1795413592.diff (709 B)

Event Timeline