Merge pull request #13389 from anlancs/fix/pimd-wrong-mrt-sockopt

pimd: Fix wrong setsockopt() call
This commit is contained in:
Donald Sharp 2023-05-02 09:21:24 -04:00 committed by GitHub
commit cdfc536f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ int pim_mroute_set(struct pim_instance *pim, int enable)
/*
* We need to create the VRF table for the pim mroute_socket
*/
if (pim->vrf->vrf_id != VRF_DEFAULT) {
if (enable && pim->vrf->vrf_id != VRF_DEFAULT) {
frr_with_privs (&pimd_privs) {
data = pim->vrf->data.l.table_id;