Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156341463
D56469.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
694 B
Referenced Files
None
Subscribers
None
D56469.diff
View Options
diff --git a/usr.sbin/ctld/login.cc b/usr.sbin/ctld/login.cc
--- a/usr.sbin/ctld/login.cc
+++ b/usr.sbin/ctld/login.cc
@@ -967,12 +967,18 @@
login_send_error(request, 0x02, 0x07);
log_errx(1, "received Login PDU without TargetName");
}
+ /*
+ * Normalize target_name according to RFC 3722
+ */
+ std::string t_name(target_name);
+ for (char &c : t_name)
+ c = tolower(c);
- conn_port = pg->find_port(target_name);
+ conn_port = pg->find_port(t_name);
if (conn_port == NULL) {
login_send_error(request, 0x02, 0x03);
log_errx(1, "requested target \"%s\" not found",
- target_name);
+ t_name.c_str());
}
conn_target = conn_port->target();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 13, 6:02 PM (9 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31723168
Default Alt Text
D56469.diff (694 B)
Attached To
Mode
D56469: ctld: normalize iSCSI TargetName on login
Attached
Detach File
Event Timeline
Log In to Comment