mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libalias: Avoid uninitialized expiration
The expiration time of direct address mappings is explicitly uninitialized. Expire times are always compared during housekeeping. Despite the uninitialized value does not harm, it's simpler to just set it to a reasonable default. This was detected during valgrinding the test suite. MFC after: 3 days
This commit is contained in:
parent
5866c369e4
commit
b50a4dce18
1 changed files with 0 additions and 2 deletions
|
|
@ -613,8 +613,6 @@ AddLink(struct libalias *la, struct in_addr src_addr, struct in_addr dst_addr,
|
|||
case LINK_FRAGMENT_PTR:
|
||||
lnk->expire.time = FRAGMENT_PTR_EXPIRE_TIME;
|
||||
break;
|
||||
case LINK_ADDR:
|
||||
break;
|
||||
default:
|
||||
lnk->expire.time = PROTO_EXPIRE_TIME;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue