]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fix maxage_lsa lookup key 1278/head
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 2 Oct 2017 21:07:13 +0000 (14:07 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 2 Oct 2017 21:17:11 +0000 (14:17 -0700)
commitdcc3ef8723928fd1bc652eb63af5a8cf5eb63d92
tree25ef52237f27b9c8207c55d3ffa97c5aa5b35957
parent98e6d77f93985349c2cca965c6417bdef8601070
ospfd: Fix maxage_lsa lookup key

maxage_lsa using prefix structure to store in route_table.
The lsa pointer is 4-8 bytes depending on arch, but prefix member field
would be 1 byte. Use ptr field of prefix structure to store lsa pointer.
Also memset to initialize to avoid crash on ARM platform as same LSA is
referenced from multiple times during shutdown of ospf.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_lsa.c