Page MenuHomeFreeBSD

D56469.diff
No OneTemporary

D56469.diff

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

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)

Event Timeline