]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_mroute.c
pimd: Fix wrong setsockopt() call
[mirror_frr.git] / pimd / pim_mroute.c
index 4d5da31827659383bff8df8f5e42e09624d43f34..b64fcdeb87237a14aadcda71c5c9544f13ae3543 100644 (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;