-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zebra: crash when deleting a vrf with a l3vni inside #12123
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2176,6 +2176,8 @@ static int zebra_vxlan_handle_vni_transition(struct zebra_vrf *zvrf, vni_t vni, | |
return 0; | ||
|
||
zevpn = zebra_evpn_add(vni); | ||
if (!zevpn) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can it be NULL? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it can, in the case where the hash table is not present. |
||
return -1; | ||
|
||
/* Find bridge interface for the VNI */ | ||
vlan_if = zvni_map_to_svi(vxl->access_vlan, | ||
|
@@ -5913,6 +5915,7 @@ void zebra_vxlan_close_tables(struct zebra_vrf *zvrf) | |
return; | ||
hash_iterate(zvrf->evpn_table, zebra_evpn_vxlan_cleanup_all, zvrf); | ||
hash_free(zvrf->evpn_table); | ||
zvrf->evpn_table = NULL; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, why this pull request was closed? I seem to have encountered the same problem |
||
if (zvrf->vxlan_sg_table) { | ||
zebra_vxlan_cleanup_sg_table(zvrf); | ||
hash_free(zvrf->vxlan_sg_table); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do this check before memset (a little bit above)?