Skip to content
Snippets Groups Projects
Commit 56cde733 authored by Rouven Czerwinski's avatar Rouven Czerwinski Committed by Rouven Czerwinski
Browse files

gluon-radv-filterd: replace malloc with calloc

Allocation of the router structure for newly detected router
advertisements was done using malloc and selectively clearing some of
the structure fields. However the redirect boolean was never set to 0,
which means that during update_redirect, we would depend on the random
initialization value of the structure.

This means that sometimes ebtables-tiny wouldn't add the correct rules
for the advertised routes.
parent c2fc4e5a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment