Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143042966
D49650.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
827 B
Referenced Files
None
Subscribers
None
D49650.diff
View Options
diff --git a/usr.sbin/ctld/kernel.cc b/usr.sbin/ctld/kernel.cc
--- a/usr.sbin/ctld/kernel.cc
+++ b/usr.sbin/ctld/kernel.cc
@@ -40,6 +40,7 @@
#include <sys/param.h>
#include <sys/capsicum.h>
#include <sys/callout.h>
+#include <sys/cnv.h>
#include <sys/ioctl.h>
#include <sys/linker.h>
#include <sys/module.h>
@@ -635,12 +636,12 @@
NULL) {
if (strcmp(key, "file") == 0 ||
strcmp(key, "dev") == 0) {
- cl->l_path = nvlist_take_string(lun->attr_list,
- key);
+ cl->l_path = checked_strdup(
+ cnvlist_get_string(cookie));
continue;
}
nvlist_add_string(cl->l_options, key,
- nvlist_get_string(lun->attr_list, key));
+ cnvlist_get_string(cookie));
error = nvlist_error(cl->l_options);
if (error != 0)
log_warnc(error, "unable to add CTL lun option "
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 26, 11:20 AM (12 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28025089
Default Alt Text
D49650.diff (827 B)
Attached To
Mode
D49650: ctld: Do not remove item from an nvlist while iterating it
Attached
Detach File
Event Timeline
Log In to Comment