Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177843930
D57604.1795413592.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
709 B
Referenced Files
None
Subscribers
None
D57604.1795413592.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57604: bsnmpd/snmp_hostres: fix hrFSTable remoteMountPoint leak
Attached
Detach File
Event Timeline