Skip to content

Commit eab2e5a

Browse files
committed
Fixed parameters lifetime bug in security provider.
1 parent 56cbb03 commit eab2e5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

statime-linux/src/securityprovider.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ impl NTSProvider {
7878
valid_till: now
7979
+ std::time::Duration::from_secs(
8080
next_parameters.validity_period.lifetime as _,
81+
)
82+
+ std::time::Duration::from_secs(
83+
initial_data.current_parameters.validity_period.lifetime as _,
8184
),
8285
},
8386
);
@@ -259,6 +262,9 @@ async fn assocation_manager(
259262
valid_till: now
260263
+ std::time::Duration::from_secs(
261264
next_params.validity_period.lifetime as _,
265+
)
266+
+ std::time::Duration::from_secs(
267+
params.current_parameters.validity_period.lifetime as _,
262268
),
263269
},
264270
);

0 commit comments

Comments
 (0)