mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 10:31:09 +00:00
pimd: fix mtracebis tool warning
Use `getpid()` to initialize the sequence number. This change silences Coverity Scan warning about truncated use of `time()` which in this case is not a problem. Found by Coverity Scan (CID 1519828) Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
cd16c74b77
commit
d8145114e0
@ -92,7 +92,7 @@ int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions,
|
||||
rth->local.nl_family);
|
||||
return -1;
|
||||
}
|
||||
rth->seq = (uint32_t)time(NULL);
|
||||
rth->seq = getpid();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user