mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 18:14:56 +01:00
rtadvd(8): double assignment.
Remove doubtful initialization since the value will be overwritten immediately afterwards. Found with: coccinelle (da.cocci)
This commit is contained in:
parent
95c10b8fa0
commit
3472d84e17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314141
@ -1395,7 +1395,6 @@ make_packet(struct rainfo *rai)
|
||||
ra->nd_ra_code = 0;
|
||||
ra->nd_ra_cksum = 0;
|
||||
ra->nd_ra_curhoplimit = (uint8_t)(0xff & rai->rai_hoplimit);
|
||||
ra->nd_ra_flags_reserved = 0; /* just in case */
|
||||
/*
|
||||
* XXX: the router preference field, which is a 2-bit field, should be
|
||||
* initialized before other fields.
|
||||
|
Loading…
Reference in New Issue
Block a user