summaryrefslogtreecommitdiff
path: root/lib/frr_pthread.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-06-29 09:09:23 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-06-29 09:09:23 -0400
commit16895dbf7314117dc0f5c909de4764fca4a539d2 (patch)
tree02e9b5acac6f675add11f14b89d211bc7c98df48 /lib/frr_pthread.c
parent3127371595cd10e6da89ceb2c387a26ee3ff83f7 (diff)
bgpd, lib, zebra: Fix if_update function to represent what it does
The if_update function was taking the interface name as input and reapplying it, using strncpy to reapply the name. This has several issues. strncpy should not be used to copy memory in place. The second issue is that the interface name is not actually changing when we update interface to be in the new vrf. Since every usage of if_update was just reapplying the same name the interface actually had, just remove that part of the function and rename it to if_update_to_new_vrf to represent what it is actually doing. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.c')
0 files changed, 0 insertions, 0 deletions