We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21137af commit 7ac5daeCopy full SHA for 7ac5dae
tls/tls_ticket.c
@@ -74,7 +74,16 @@ ttls_ticket_get_time(unsigned long lifetime)
74
struct timespec64 ts;
75
unsigned long ts_sec;
76
77
- tfw_current_timestamp_real(&ts);
+ /*
78
+ * This function is called from both process context
79
+ * (ttls_tickets_configure) and softirq context
80
+ * (ttls_ticket_rotate_keys timer callback).
81
+ */
82
+ if (in_softirq()) {
83
+ tfw_current_timestamp_ts64(&ts);
84
+ } else {
85
+ tfw_current_timestamp_real(&ts);
86
+ }
87
ts_sec = ts.tv_sec;
88
ts_sec -= ts_sec % lifetime;
89
0 commit comments