Line 0
Link Here
|
|
|
1 |
--- ./lib/login.c.ORIG 2019-07-14 00:04:44.000000000 +0200 |
2 |
+++ ./lib/login.c 2020-05-27 22:09:19.439618000 +0200 |
3 |
@@ -1242,11 +1242,11 @@ |
4 |
|
5 |
/* iSER specific keys */ |
6 |
if (!strncmp(ptr, "InitiatorRecvDataSegmentLength=", 31)) { |
7 |
- iscsi->initiator_max_recv_data_segment_length = MIN(strtol(ptr + 31, NULL, 10), |
8 |
+ iscsi->initiator_max_recv_data_segment_length = MIN(strtoul(ptr + 31, NULL, 10), |
9 |
iscsi->initiator_max_recv_data_segment_length); |
10 |
} |
11 |
if (!strncmp(ptr, "TargetRecvDataSegmentLength=", 28)) { |
12 |
- iscsi->target_max_recv_data_segment_length = MIN(strtol(ptr + 28, NULL, 10), |
13 |
+ iscsi->target_max_recv_data_segment_length = MIN(strtoul(ptr + 28, NULL, 10), |
14 |
iscsi->target_max_recv_data_segment_length); |
15 |
} |
16 |
|