summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_gr.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2023-05-31 00:41:39 +0200
committerRenato Westphal <renato@opensourcerouting.org>2023-05-31 00:47:28 +0200
commit2882096fad0b98c051551574195c6d062d8b9624 (patch)
treee6065c263f566c49b2a16924ef0a36b37f5c2e3f /ospfd/ospf_gr.c
parentMerge pull request #13631 from donaldsharp/fix_some_ping_issues (diff)
downloadfrr-2882096fad0b98c051551574195c6d062d8b9624.tar.xz
frr-2882096fad0b98c051551574195c6d062d8b9624.zip
ospfd, ospf6d: fix time_t truncation
Change timestamp parameter from int to time_t to avoid truncation. Found by Coverity Scan (CID 1563226 and 1563222) Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_gr.c')
-rw-r--r--ospfd/ospf_gr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_gr.c b/ospfd/ospf_gr.c
index 6999b3f62..2a346f238 100644
--- a/ospfd/ospf_gr.c
+++ b/ospfd/ospf_gr.c
@@ -282,7 +282,7 @@ static void ospf_gr_restart_exit(struct ospf *ospf, const char *reason)
/* Enter the Graceful Restart mode. */
void ospf_gr_restart_enter(struct ospf *ospf,
- enum ospf_gr_restart_reason reason, int timestamp)
+ enum ospf_gr_restart_reason reason, time_t timestamp)
{
unsigned long remaining_time;