Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105561129
D34380.id103241.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
730 B
Referenced Files
None
Subscribers
None
D34380.id103241.diff
View Options
Index: usr.sbin/iscsid/iscsid.c
===================================================================
--- usr.sbin/iscsid/iscsid.c
+++ usr.sbin/iscsid/iscsid.c
@@ -397,12 +397,14 @@
keepinit);
}
if (conn->conn_conf.isc_login_timeout == -1) {
- char value[8];
+ int value;
size_t size = sizeof(value);
- sysctlbyname("kern.iscsi.login_timeout", &value, &size,
- NULL, 0);
- keepinit = strtol(value, NULL, 10);
- log_debugx("global login_timeout at %d sec", keepinit);
+ if (sysctlbyname("kern.iscsi.login_timeout",
+ &value, &size, NULL, 0) == 0) {
+ keepinit = value;
+ log_debugx("global login_timeout at %d sec",
+ keepinit);
+ }
}
if (keepinit > 0) {
if (setsockopt(conn->conn.conn_socket,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 4:38 PM (20 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15490763
Default Alt Text
D34380.id103241.diff (730 B)
Attached To
Mode
D34380: iscsi: retrieve global login timeout from sysctlbyname() as integer
Attached
Detach File
Event Timeline
Log In to Comment