diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2023-05-30 19:41:39 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2023-05-30 19:47:28 -0300 | 
| commit | 2882096fad0b98c051551574195c6d062d8b9624 (patch) | |
| tree | e6065c263f566c49b2a16924ef0a36b37f5c2e3f /ospf6d/ospf6_gr.c | |
| parent | 147c7a2de355c3733604474840902762b51062ae (diff) | |
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 'ospf6d/ospf6_gr.c')
| -rw-r--r-- | ospf6d/ospf6_gr.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_gr.c b/ospf6d/ospf6_gr.c index 3d5d4d259f..ecaaa038ab 100644 --- a/ospf6d/ospf6_gr.c +++ b/ospf6d/ospf6_gr.c @@ -239,7 +239,8 @@ static void ospf6_gr_restart_exit(struct ospf6 *ospf6, const char *reason)  /* Enter the Graceful Restart mode. */  void ospf6_gr_restart_enter(struct ospf6 *ospf6, -			    enum ospf6_gr_restart_reason reason, int timestamp) +			    enum ospf6_gr_restart_reason reason, +			    time_t timestamp)  {  	unsigned long remaining_time;  | 
