Page MenuHomeFreeBSD

D34380.id103241.diff
No OneTemporary

D34380.id103241.diff

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

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)

Event Timeline